Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 105.1 kB / 17.06 MB, free: 6.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 200.1 kB / 18 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 222.9 MB / 241.7 MB, free: 15.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009947/0.0009948, allocations: 47.94 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3638/0.3648, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003846/0.3687, allocations: 1.994 MB / 402.7 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001054/0.3698, allocations: 0.5181 MB / 403.2 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001403/0.3699, allocations: 4 kB / 403.2 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.3701, allocations: 15.8 kB / 403.2 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.554e-05/0.3702, allocations: 23.73 kB / 403.3 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004107/0.3706, allocations: 59.88 kB / 403.3 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000216/0.3708, allocations: 119.6 kB / 403.4 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002592/0.3711, allocations: 49.41 kB / 403.5 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000104/0.3712, allocations: 51.84 kB / 403.5 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001135/0.3713, allocations: 51.72 kB / 403.6 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.156e-05/0.3714, allocations: 12 kB / 403.6 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.695e-05/0.3714, allocations: 12 kB / 403.6 MB, free: 5.953 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.686e-05/0.3715, allocations: 31.89 kB / 403.6 MB, free: 5.922 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.086e-05/0.3716, allocations: 59.67 kB / 403.7 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000278/0.3718, allocations: 119.3 kB / 403.8 MB, free: 5.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.786e-06/0.3719, allocations: 3.984 kB / 403.8 MB, free: 5.746 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3719, allocations: 0 / 403.8 MB, free: 5.746 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.508e-05/0.3719, allocations: 0 / 403.8 MB, free: 5.746 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0007653/0.3726, allocations: 430.9 kB / 404.2 MB, free: 5.277 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.3727, allocations: 12.03 kB / 404.2 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.372e-05/0.3728, allocations: 16.84 kB / 404.3 MB, free: 5.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003508/0.3731, allocations: 212.1 kB / 404.5 MB, free: 5.004 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.3731, allocations: 8.375 kB / 404.5 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.532e-05/0.3732, allocations: 12.38 kB / 404.5 MB, free: 4.984 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005831/0.3738, allocations: 242.9 kB / 404.7 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.019e-05/0.3738, allocations: 3.953 kB / 404.7 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/0.3738, allocations: 8 kB / 404.7 MB, free: 4.711 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.3739, allocations: 0 / 404.7 MB, free: 4.711 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002495/0.3741, allocations: 91.86 kB / 404.8 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007973/0.3749, allocations: 0.5766 MB / 405.4 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003128/0.3752, allocations: 151.9 kB / 405.6 MB, free: 3.797 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001801/0.3754, allocations: 78.56 kB / 405.6 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.35e-05/0.3755, allocations: 11.98 kB / 405.6 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/0.3755, allocations: 38.5 kB / 405.7 MB, free: 3.652 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.183e-06/0.3755, allocations: 0 / 405.7 MB, free: 3.652 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.000594/0.3761, allocations: 181.3 kB / 405.9 MB, free: 3.469 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.938e-05/0.3762, allocations: 114.9 kB / 406 MB, free: 3.332 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000143/0.3764, allocations: 133.6 kB / 406.1 MB, free: 3.191 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.3764, allocations: 25.7 kB / 406.1 MB, free: 3.16 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.68e-05/0.3765, allocations: 116.1 kB / 406.2 MB, free: 3.043 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.608e-05/0.3766, allocations: 35.77 kB / 406.3 MB, free: 3.008 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.947e-05/0.3766, allocations: 25.72 kB / 406.3 MB, free: 2.977 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.3768, allocations: 322.8 kB / 406.6 MB, free: 2.652 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.3769, allocations: 35.97 kB / 406.7 MB, free: 2.617 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001616/0.3771, allocations: 128.8 kB / 406.8 MB, free: 2.445 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002937/0.3774, allocations: 180.6 kB / 407 MB, free: 2.223 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.3774, allocations: 4 kB / 407 MB, free: 2.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000357/0.3777, allocations: 185.3 kB / 407.1 MB, free: 2.031 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.3778, allocations: 8.438 kB / 407.1 MB, free: 2.023 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.567e-06/0.3778, allocations: 8 kB / 407.2 MB, free: 2.016 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.516e-05/0.3778, allocations: 7.938 kB / 407.2 MB, free: 2.008 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001854/0.378, allocations: 43.91 kB / 407.2 MB, free: 1.965 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.522e-05/0.378, allocations: 8 kB / 407.2 MB, free: 1.957 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001094/0.3782, allocations: 23.88 kB / 407.2 MB, free: 1.934 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/0.3782, allocations: 8 kB / 407.2 MB, free: 1.926 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000142/0.3783, allocations: 126.4 kB / 407.4 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001507/0.3785, allocations: 85.53 kB / 407.5 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.061e-05/0.3786, allocations: 28.64 kB / 407.5 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.3786, allocations: 0 / 407.5 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.403e-06/0.3786, allocations: 4 kB / 407.5 MB, free: 1.664 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.3786, allocations: 0 / 407.5 MB, free: 1.664 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003116/0.3789, allocations: 201.5 kB / 407.7 MB, free: 1.418 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3789, allocations: 0 / 407.7 MB, free: 1.418 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001672/0.3791, allocations: 32.45 kB / 407.7 MB, free: 1.387 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.3791, allocations: 0 / 407.7 MB, free: 1.387 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.209e-05/0.3791, allocations: 11.94 kB / 407.7 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.3791, allocations: 0 / 407.7 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.3791, allocations: 11.88 kB / 407.7 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005886/0.3797, allocations: 375.4 kB / 408.1 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.086e-05/0.3798, allocations: 85.09 kB / 408.2 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.3799, allocations: 3.938 kB / 408.2 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001346/0.38, allocations: 16.05 kB / 408.2 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.521e-05/0.3801, allocations: 4 kB / 408.2 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.3801, allocations: 8 kB / 408.2 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.651e-05/0.3802, allocations: 107.2 kB / 408.3 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3802, allocations: 0 / 408.3 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003315/0.3805, allocations: 27.95 kB / 408.3 MB, free: 0.7109 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001638/0.3807, allocations: 103.2 kB / 408.4 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004073/0.3811, allocations: 123.2 kB / 408.6 MB, free: 496 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.3811, allocations: 0 / 408.6 MB, free: 496 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.984e-05/0.3812, allocations: 29.17 kB / 408.6 MB, free: 468 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000594/0.3818, allocations: 56 kB / 408.7 MB, free: 412 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001013/0.3828, allocations: 393.3 kB / 409 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004874/0.3833, allocations: 0.7201 MB / 409.8 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.874e-05/0.3834, allocations: 8.641 kB / 409.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.671e-05/0.3835, allocations: 15.44 kB / 409.8 MB, free: 15.21 MB / 334.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3835, allocations: 0 / 409.8 MB, free: 15.21 MB / 334.1 MB Notification: Performance of Templates: time 0.004688/0.3882, allocations: 1.185 MB / 411 MB, free: 14.07 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches