Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009919/0.0009919, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 169 kB / 24.91 MB, free: 8.723 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9877/0.9877, allocations: 177.1 MB / 205.3 MB, free: 4.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1482/0.1482, allocations: 32.79 MB / 294.6 MB, free: 15.46 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP") translateModel(ModelicaTest.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.102e-06/1.102e-06, allocations: 0 / 323.2 MB, free: 2.781 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.654e-05/1.764e-05, allocations: 10.25 kB / 323.3 MB, free: 2.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002377/0.002395, allocations: 2.371 MB / 325.6 MB, free: 392 kB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.003677, allocations: 0.9783 MB / 326.6 MB, free: 15.4 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.003806, allocations: 15.88 kB / 326.6 MB, free: 15.38 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002747/0.004081, allocations: 107.2 kB / 326.7 MB, free: 15.28 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001681/0.004249, allocations: 99.27 kB / 326.8 MB, free: 15.18 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004821/0.004731, allocations: 295.4 kB / 327.1 MB, free: 14.89 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005096/0.005241, allocations: 0.7211 MB / 327.8 MB, free: 14.17 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.005352, allocations: 61.16 kB / 327.9 MB, free: 14.1 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003458/0.005698, allocations: 395.2 kB / 328.3 MB, free: 13.71 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002638/0.005962, allocations: 287.2 kB / 328.6 MB, free: 13.43 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.837e-05/0.00603, allocations: 64 kB / 328.6 MB, free: 13.37 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.466e-05/0.006085, allocations: 64 kB / 328.7 MB, free: 13.31 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001221/0.006207, allocations: 203.4 kB / 328.9 MB, free: 13.11 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003708/0.006578, allocations: 175.5 kB / 329.1 MB, free: 12.94 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003369/0.006915, allocations: 462.5 kB / 329.5 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.493e-06/0.006916, allocations: 0 / 329.5 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.006917, allocations: 0 / 329.5 MB, free: 12.48 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.006922, allocations: 0 / 329.5 MB, free: 12.48 MB / 314.7 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.0009589/0.007881, allocations: 0.7919 MB / 330.3 MB, free: 11.67 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.893e-05/0.00791, allocations: 11.98 kB / 330.3 MB, free: 11.66 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.705e-05/0.008007, allocations: 96.88 kB / 330.4 MB, free: 11.56 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002877/0.008294, allocations: 260.4 kB / 330.7 MB, free: 11.28 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003041/0.008598, allocations: 0.6591 MB / 331.3 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.871e-05/0.008657, allocations: 40.38 kB / 331.4 MB, free: 10.45 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005867/0.009244, allocations: 0.5314 MB / 331.9 MB, free: 9.871 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.00926, allocations: 4.172 kB / 331.9 MB, free: 9.867 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.197e-05/0.009291, allocations: 20.12 kB / 331.9 MB, free: 9.848 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.009301, allocations: 12 kB / 331.9 MB, free: 9.836 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004967/0.009797, allocations: 338.3 kB / 332.3 MB, free: 9.504 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001297/0.01109, allocations: 1.435 MB / 333.7 MB, free: 8.012 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006389/0.01173, allocations: 445.7 kB / 334.1 MB, free: 7.555 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000179/0.01191, allocations: 134.8 kB / 334.3 MB, free: 7.418 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.441e-05/0.01197, allocations: 12.56 kB / 334.3 MB, free: 7.406 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.01199, allocations: 39.69 kB / 334.3 MB, free: 7.359 MB / 314.7 MB Notification: Performance of pre-optimization done (n=66): time 1.562e-06/0.01199, allocations: 0 / 334.3 MB, free: 7.359 MB / 314.7 MB Notification: Performance of matching and sorting (n=122): time 0.1597/0.1717, allocations: 7.692 MB / 342 MB, free: 32.62 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.1717, allocations: 90.33 kB / 342.1 MB, free: 32.53 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002549/0.172, allocations: 330.9 kB / 342.4 MB, free: 32.41 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001087/0.1721, allocations: 47.48 kB / 342.5 MB, free: 32.38 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.326e-05/0.1722, allocations: 192.5 kB / 342.6 MB, free: 32.29 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003019/0.1725, allocations: 422.2 kB / 343.1 MB, free: 32.06 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003513/0.1728, allocations: 201.2 kB / 343.3 MB, free: 32.04 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.12e-05/0.1729, allocations: 378.9 kB / 343.6 MB, free: 31.73 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005881/0.1735, allocations: 426.5 kB / 344 MB, free: 31.72 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006295/0.1741, allocations: 0.5678 MB / 344.6 MB, free: 31.6 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001094/0.1752, allocations: 0.9929 MB / 345.6 MB, free: 31.45 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.1752, allocations: 6.125 kB / 345.6 MB, free: 31.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.001502/0.1767, allocations: 1.095 MB / 346.7 MB, free: 31.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.1768, allocations: 6.844 kB / 346.7 MB, free: 31.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.1768, allocations: 4.016 kB / 346.7 MB, free: 31.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.532e-05/0.1768, allocations: 9.781 kB / 346.7 MB, free: 31.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/0.1781, allocations: 372.4 kB / 347.1 MB, free: 31.38 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/0.1781, allocations: 8.781 kB / 347.1 MB, free: 31.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007448/0.1788, allocations: 168.8 kB / 347.3 MB, free: 31.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.805e-05/0.1789, allocations: 31.19 kB / 347.3 MB, free: 31.38 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 12 (integrator.local_reset,integrator1.local_reset,integrator2.local_reset,integrator3.local_reset,kinematicPTP1b.noWphase,kinematicPTP1b.motion_ref,kinematicPTP1b.moving[1],kinematicPTP1a.noWphase,kinematicPTP2b.noWphase,kinematicPTP2b.motion_ref,kinematicPTP2b.moving[1],kinematicPTP2a.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 150 * 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.0002346/0.1791, allocations: 174.4 kB / 347.5 MB, free: 31.27 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001969/0.1793, allocations: 77.66 kB / 347.5 MB, free: 31.27 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.315e-05/0.1794, allocations: 118.7 kB / 347.7 MB, free: 31.25 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.1794, allocations: 11.38 kB / 347.7 MB, free: 31.25 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.28e-05/0.1795, allocations: 1.688 kB / 347.7 MB, free: 31.25 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.283e-05/0.1795, allocations: 6.891 kB / 347.7 MB, free: 31.25 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003576/0.1831, allocations: 2.593 MB / 350.3 MB, free: 30.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.161e-05/0.1831, allocations: 20.16 kB / 350.3 MB, free: 30.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006233/0.1837, allocations: 313.4 kB / 350.6 MB, free: 30 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.407e-05/0.1837, allocations: 29.25 kB / 350.6 MB, free: 30 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.245e-05/0.1838, allocations: 48.58 kB / 350.7 MB, free: 30 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.657e-05/0.1838, allocations: 46.41 kB / 350.7 MB, free: 29.99 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.131e-05/0.1838, allocations: 35.45 kB / 350.7 MB, free: 29.98 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.1849, allocations: 1.615 MB / 352.4 MB, free: 28.85 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001693/0.185, allocations: 101.3 kB / 352.5 MB, free: 28.82 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.402e-05/0.1851, allocations: 53.56 kB / 352.5 MB, free: 28.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004747/0.1856, allocations: 140.2 kB / 352.6 MB, free: 28.7 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002195/0.1858, allocations: 210.7 kB / 352.9 MB, free: 28.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.216e-05/0.1858, allocations: 47.25 kB / 352.9 MB, free: 28.57 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.94e-05/0.1859, allocations: 129.4 kB / 353 MB, free: 28.48 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1859, allocations: 0 / 353 MB, free: 28.48 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005485/0.1865, allocations: 231.1 kB / 353.3 MB, free: 28.27 MB / 314.7 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: 8 (kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,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 (122): * Single equations (assignments): 122 * 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.0001177/0.1866, allocations: 151.7 kB / 353.4 MB, free: 28.13 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000921/0.1875, allocations: 0.9143 MB / 354.3 MB, free: 27.31 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.146e-05/0.1875, allocations: 8 kB / 354.3 MB, free: 27.3 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003252/0.1878, allocations: 349.1 kB / 354.7 MB, free: 27 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006839/0.1885, allocations: 205.2 kB / 354.9 MB, free: 26.84 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00143/0.1899, allocations: 1.749 MB / 356.6 MB, free: 24.96 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001088/0.1901, allocations: 183.7 kB / 356.8 MB, free: 24.79 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005028/0.1906, allocations: 171.8 kB / 357 MB, free: 24.65 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005558/0.1911, allocations: 175.1 kB / 357.1 MB, free: 24.48 MB / 314.7 MB Notification: Performance of SimCode: time 1.002e-06/0.1911, allocations: 4 kB / 357.1 MB, free: 24.48 MB / 314.7 MB Notification: Performance of Templates: time 0.01684/0.208, allocations: 19.25 MB / 376.4 MB, free: 5.555 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3204636578448117]