Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP") translateModel(ModelicaTest.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001466/0.001466, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001828/0.001828, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2104/0.2104, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 76.16 kB / 481.3 MB, free: 4.039 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3491, allocations: 62.44 MB / 0.531 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003353/0.3525, allocations: 2.421 MB / 0.5333 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001636/0.3542, allocations: 0.974 MB / 0.5343 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.3543, allocations: 9.438 kB / 0.5343 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000356/0.3547, allocations: 114.9 kB / 0.5344 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002281/0.3549, allocations: 101.1 kB / 0.5345 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000568/0.3555, allocations: 284.8 kB / 0.5348 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006618/0.3562, allocations: 0.7132 MB / 0.5355 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001722/0.3564, allocations: 71.42 kB / 0.5356 GB, free: 10 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003104/0.3567, allocations: 305.4 kB / 0.5358 GB, free: 9.809 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003896/0.3571, allocations: 325.6 kB / 0.5362 GB, free: 9.578 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.249e-05/0.3572, allocations: 67.83 kB / 0.5362 GB, free: 9.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.55e-05/0.3573, allocations: 63.88 kB / 0.5363 GB, free: 9.566 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001759/0.3575, allocations: 188.9 kB / 0.5365 GB, free: 9.422 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00021/0.3577, allocations: 243.6 kB / 0.5367 GB, free: 9.223 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005007/0.3582, allocations: 0.5531 MB / 0.5372 GB, free: 8.805 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3582, allocations: 1.312 kB / 0.5372 GB, free: 8.805 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3582, allocations: 0 / 0.5372 GB, free: 8.805 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.3582, allocations: 0 / 0.5372 GB, free: 8.805 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.002193/0.3604, allocations: 0.9345 MB / 0.5381 GB, free: 8.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.3605, allocations: 13.8 kB / 0.5382 GB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/0.3606, allocations: 61.03 kB / 0.5382 GB, free: 8.062 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005442/0.3611, allocations: 379.2 kB / 0.5386 GB, free: 7.727 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003562/0.3615, allocations: 266 kB / 0.5388 GB, free: 7.492 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.3616, allocations: 43.25 kB / 0.5389 GB, free: 7.477 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002061/0.3637, allocations: 0.8096 MB / 0.5397 GB, free: 6.953 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.3637, allocations: 5.469 kB / 0.5397 GB, free: 6.949 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.838e-05/0.3638, allocations: 19.28 kB / 0.5397 GB, free: 6.934 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/0.3638, allocations: 10.44 kB / 0.5397 GB, free: 6.934 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003646/0.3675, allocations: 1.199 MB / 0.5409 GB, free: 6.395 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002957/0.3704, allocations: 2.026 MB / 0.5428 GB, free: 4.656 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003052/0.3735, allocations: 0.8287 MB / 0.5437 GB, free: 4.242 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00155/0.3751, allocations: 0.4901 MB / 0.5441 GB, free: 3.977 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.165e-05/0.3752, allocations: 4 kB / 0.5441 GB, free: 3.973 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.3752, allocations: 46.5 kB / 0.5442 GB, free: 3.918 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 1.923e-06/0.3752, allocations: 0 / 0.5442 GB, free: 3.918 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.08375/0.459, allocations: 15.75 MB / 0.5596 GB, free: 3.988 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.874e-05/0.4591, allocations: 90.23 kB / 0.5596 GB, free: 3.879 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004778/0.4596, allocations: 397.4 kB / 0.56 GB, free: 3.477 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000172/0.4597, allocations: 49.7 kB / 0.5601 GB, free: 3.422 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001425/0.4599, allocations: 217 kB / 0.5603 GB, free: 3.203 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003523/0.4603, allocations: 402.1 kB / 0.5607 GB, free: 2.805 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005434/0.4608, allocations: 194.9 kB / 0.5608 GB, free: 2.605 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.4609, allocations: 374.8 kB / 0.5612 GB, free: 2.23 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003535/0.4645, allocations: 1.342 MB / 0.5625 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003674/0.4682, allocations: 1.493 MB / 0.564 GB, free: 15.35 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006592/0.4748, allocations: 2.453 MB / 0.5664 GB, free: 12.86 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.4748, allocations: 0 / 0.5664 GB, free: 12.86 MB / 430.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.00777/0.4826, allocations: 2.826 MB / 0.5691 GB, free: 10.02 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.778e-05/0.4827, allocations: 11.98 kB / 0.5691 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.4827, allocations: 4 kB / 0.5691 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.871e-05/0.4827, allocations: 8 kB / 0.5692 GB, free: 9.996 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002666/0.4854, allocations: 411.5 kB / 0.5695 GB, free: 9.594 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.999e-05/0.4854, allocations: 15.94 kB / 0.5696 GB, free: 9.578 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001944/0.4874, allocations: 215.7 kB / 0.5698 GB, free: 9.367 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001716/0.4876, allocations: 39.98 kB / 0.5698 GB, free: 9.328 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 10 (kinematicPTP2a.noWphase,kinematicPTP2b.noWphase,kinematicPTP2b.moving[1],kinematicPTP1a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1b.moving[1],integrator3.local_reset,integrator2.local_reset,integrator1.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 148 * 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.0004971/0.4881, allocations: 238.8 kB / 0.57 GB, free: 9.086 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002324/0.4883, allocations: 63.25 kB / 0.5701 GB, free: 9.023 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002871/0.4886, allocations: 104.7 kB / 0.5702 GB, free: 8.922 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.154e-05/0.4886, allocations: 12 kB / 0.5702 GB, free: 8.91 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-05/0.4886, allocations: 7.938 kB / 0.5702 GB, free: 8.902 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.4887, allocations: 7.969 kB / 0.5702 GB, free: 8.895 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01164/0.5003, allocations: 5.219 MB / 0.5753 GB, free: 3.332 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.073e-05/0.5004, allocations: 29 kB / 0.5753 GB, free: 3.305 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001586/0.502, allocations: 355.4 kB / 0.5757 GB, free: 2.957 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.832e-05/0.502, allocations: 24 kB / 0.5757 GB, free: 2.934 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001035/0.5021, allocations: 48 kB / 0.5758 GB, free: 2.887 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.743e-05/0.5022, allocations: 47.8 kB / 0.5758 GB, free: 2.84 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.019e-05/0.5022, allocations: 31.88 kB / 0.5758 GB, free: 2.809 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007344/0.5095, allocations: 3.089 MB / 0.5788 GB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004733/0.5101, allocations: 240.3 kB / 0.5791 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001425/0.5102, allocations: 47.98 kB / 0.5791 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/0.5115, allocations: 191.8 kB / 0.5793 GB, free: 14.93 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004434/0.512, allocations: 219.2 kB / 0.5795 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.547e-05/0.5121, allocations: 56 kB / 0.5796 GB, free: 14.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002885/0.5124, allocations: 267.1 kB / 0.5798 GB, free: 14.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5124, allocations: 0 / 0.5798 GB, free: 14.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009764/0.5134, allocations: 232 kB / 0.58 GB, free: 14.17 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 94 * Number of states: 4 (integrator2.y,integrator3.y,integrator.y,integrator1.y) * Number of discrete variables: 6 (kinematicPTP2b.moving[1],kinematicPTP1b.moving[1],kinematicPTP2b.noWphase,kinematicPTP2a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1a.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 120 * 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.0002279/0.5136, allocations: 170.7 kB / 0.5802 GB, free: 14 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006358/0.52, allocations: 2.398 MB / 0.5825 GB, free: 11.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.274e-05/0.52, allocations: 4 kB / 0.5825 GB, free: 11.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003463/0.5235, allocations: 1.063 MB / 0.5836 GB, free: 10.54 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/0.5248, allocations: 148.2 kB / 0.5837 GB, free: 10.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003809/0.5286, allocations: 1.949 MB / 0.5856 GB, free: 8.137 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005201/0.5291, allocations: 0.9282 MB / 0.5865 GB, free: 7.184 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001052/0.5302, allocations: 206.1 kB / 0.5867 GB, free: 6.98 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005795/0.5308, allocations: 71.42 kB / 0.5868 GB, free: 6.91 MB / 446.1 MB Notification: Performance of SimCode: time 8.72e-07/0.5308, allocations: 0 / 0.5868 GB, free: 6.91 MB / 446.1 MB Notification: Performance of Templates: time 0.02481/0.5556, allocations: 16.79 MB / 0.6032 GB, free: 6.133 MB / 462.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches