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.001455/0.001455, 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.001539/0.001539, 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.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2506/0.2506, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 75.88 kB / 481.3 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3732/0.3746, allocations: 62.43 MB / 0.531 GB, free: 13.83 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003839/0.3785, allocations: 2.423 MB / 0.5333 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001864/0.3803, allocations: 0.9726 MB / 0.5343 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001791/0.3805, allocations: 9.438 kB / 0.5343 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004492/0.381, allocations: 124.2 kB / 0.5344 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002204/0.3813, allocations: 91.83 kB / 0.5345 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006935/0.382, allocations: 288.7 kB / 0.5348 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008074/0.3828, allocations: 0.7282 MB / 0.5355 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002033/0.383, allocations: 67.05 kB / 0.5356 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003944/0.3834, allocations: 297.1 kB / 0.5358 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004488/0.3838, allocations: 329.2 kB / 0.5362 GB, free: 9.816 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001109/0.384, allocations: 60.34 kB / 0.5362 GB, free: 9.816 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/0.3841, allocations: 63.72 kB / 0.5363 GB, free: 9.812 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001933/0.3843, allocations: 193.1 kB / 0.5365 GB, free: 9.664 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002129/0.3845, allocations: 231.5 kB / 0.5367 GB, free: 9.477 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006002/0.3851, allocations: 0.5569 MB / 0.5372 GB, free: 9.051 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3851, allocations: 1.406 kB / 0.5372 GB, free: 9.051 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3851, allocations: 0 / 0.5372 GB, free: 9.051 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.759e-06/0.3851, allocations: 0 / 0.5372 GB, free: 9.051 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.002346/0.3875, allocations: 0.9469 MB / 0.5381 GB, free: 8.324 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.3875, allocations: 9.562 kB / 0.5382 GB, free: 8.324 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.3877, allocations: 61.22 kB / 0.5382 GB, free: 8.301 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005954/0.3883, allocations: 374.6 kB / 0.5386 GB, free: 7.969 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00036/0.3887, allocations: 266.2 kB / 0.5388 GB, free: 7.734 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/0.3888, allocations: 51.48 kB / 0.5389 GB, free: 7.711 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002153/0.3909, allocations: 0.8049 MB / 0.5397 GB, free: 7.191 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.913e-05/0.391, allocations: 5.062 kB / 0.5397 GB, free: 7.188 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.416e-05/0.391, allocations: 16.5 kB / 0.5397 GB, free: 7.176 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.391, allocations: 10.28 kB / 0.5397 GB, free: 7.176 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003767/0.3948, allocations: 1.199 MB / 0.5409 GB, free: 6.637 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003088/0.3979, allocations: 2.022 MB / 0.5428 GB, free: 4.902 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003292/0.4012, allocations: 0.8294 MB / 0.5436 GB, free: 4.488 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001626/0.4029, allocations: 496.1 kB / 0.5441 GB, free: 4.164 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.512e-05/0.403, allocations: 15.98 kB / 0.5441 GB, free: 4.148 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.653e-05/0.403, allocations: 46.5 kB / 0.5442 GB, free: 4.094 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 8.215e-06/0.4031, allocations: 0 / 0.5442 GB, free: 4.094 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.08868/0.4918, allocations: 15.75 MB / 0.5596 GB, free: 4.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.932e-05/0.4919, allocations: 90.23 kB / 0.5597 GB, free: 4.051 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005518/0.4924, allocations: 385.4 kB / 0.56 GB, free: 3.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001985/0.4927, allocations: 49.7 kB / 0.5601 GB, free: 3.605 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002565/0.4929, allocations: 225 kB / 0.5603 GB, free: 3.379 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004726/0.4934, allocations: 398.1 kB / 0.5607 GB, free: 2.984 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005879/0.494, allocations: 198.8 kB / 0.5609 GB, free: 2.781 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.4942, allocations: 370.8 kB / 0.5612 GB, free: 2.41 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0038/0.498, allocations: 1.345 MB / 0.5625 GB, free: 1.066 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003967/0.502, allocations: 1.497 MB / 0.564 GB, free: 15.52 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007006/0.509, allocations: 2.445 MB / 0.5664 GB, free: 13.04 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.509, allocations: 7.938 kB / 0.5664 GB, free: 13.03 MB / 430.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008067/0.5171, allocations: 2.834 MB / 0.5691 GB, free: 10.18 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.5171, allocations: 4 kB / 0.5691 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.5172, allocations: 4 kB / 0.5692 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.576e-05/0.5172, allocations: 8 kB / 0.5692 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002758/0.52, allocations: 407.6 kB / 0.5695 GB, free: 9.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.021e-05/0.52, allocations: 11.94 kB / 0.5696 GB, free: 9.758 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00221/0.5222, allocations: 223.7 kB / 0.5698 GB, free: 9.539 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001401/0.5224, allocations: 36 kB / 0.5698 GB, free: 9.504 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.0005267/0.5229, allocations: 238.9 kB / 0.57 GB, free: 9.262 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002312/0.5231, allocations: 63.23 kB / 0.5701 GB, free: 9.199 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002981/0.5234, allocations: 108.7 kB / 0.5702 GB, free: 9.094 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-05/0.5235, allocations: 12 kB / 0.5702 GB, free: 9.082 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.475e-05/0.5235, allocations: 3.938 kB / 0.5702 GB, free: 9.078 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.38e-05/0.5235, allocations: 3.984 kB / 0.5702 GB, free: 9.074 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01147/0.535, allocations: 5.228 MB / 0.5753 GB, free: 3.504 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.282e-05/0.535, allocations: 20 kB / 0.5753 GB, free: 3.484 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001474/0.5365, allocations: 355.4 kB / 0.5757 GB, free: 3.137 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-05/0.5365, allocations: 28 kB / 0.5757 GB, free: 3.109 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.982e-05/0.5367, allocations: 48 kB / 0.5758 GB, free: 3.062 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.72e-05/0.5367, allocations: 43.8 kB / 0.5758 GB, free: 3.02 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.927e-05/0.5367, allocations: 31.88 kB / 0.5758 GB, free: 2.988 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007253/0.544, allocations: 3.09 MB / 0.5788 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003802/0.5444, allocations: 232.3 kB / 0.5791 GB, free: 15.35 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000129/0.5445, allocations: 55.97 kB / 0.5791 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001276/0.5458, allocations: 187.8 kB / 0.5793 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004269/0.5462, allocations: 223.3 kB / 0.5795 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.13e-05/0.5463, allocations: 63.94 kB / 0.5796 GB, free: 14.83 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003064/0.5466, allocations: 263.1 kB / 0.5798 GB, free: 14.57 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5466, allocations: 0 / 0.5798 GB, free: 14.57 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001025/0.5477, allocations: 228 kB / 0.58 GB, free: 14.35 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.0002416/0.5479, allocations: 170.7 kB / 0.5802 GB, free: 14.17 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006454/0.5544, allocations: 2.39 MB / 0.5825 GB, free: 11.79 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/0.5544, allocations: 4 kB / 0.5825 GB, free: 11.78 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003402/0.5578, allocations: 1.065 MB / 0.5836 GB, free: 10.72 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001844/0.5597, allocations: 155.8 kB / 0.5837 GB, free: 10.58 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005127/0.5648, allocations: 1.949 MB / 0.5856 GB, free: 8.312 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006653/0.5655, allocations: 0.9282 MB / 0.5865 GB, free: 7.359 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001236/0.5668, allocations: 210 kB / 0.5867 GB, free: 7.152 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006945/0.5675, allocations: 71.42 kB / 0.5868 GB, free: 7.082 MB / 446.1 MB Notification: Performance of SimCode: time 8.71e-07/0.5675, allocations: 0 / 0.5868 GB, free: 7.082 MB / 446.1 MB Notification: Performance of Templates: time 0.0253/0.5928, allocations: 16.78 MB / 0.6032 GB, free: 6.316 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