Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001383/0.001383, allocations: 91.33 kB / 20.43 MB, free: 4.137 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.0009893/0.0009893, allocations: 165 kB / 23.8 MB, free: 0.7695 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8553/0.8553, allocations: 158.6 MB / 185.7 MB, free: 2.906 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1541/0.1541, allocations: 32.38 MB / 270.4 MB, free: 14.69 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Blocks.KinematicPTP") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 347.6 MB, free: 9.465 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.118e-05/2.26e-05, allocations: 6.25 kB / 347.6 MB, free: 9.457 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.005649/0.005671, allocations: 2.355 MB / 350 MB, free: 7.094 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.006989, allocations: 0.9639 MB / 351 MB, free: 6.121 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001465/0.007135, allocations: 11.88 kB / 351 MB, free: 6.109 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003268/0.007462, allocations: 119.2 kB / 351.1 MB, free: 5.992 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002106/0.007673, allocations: 111.2 kB / 351.2 MB, free: 5.883 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000475/0.008148, allocations: 295.4 kB / 351.5 MB, free: 5.594 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000498/0.008646, allocations: 0.7328 MB / 352.2 MB, free: 4.859 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.008778, allocations: 53.06 kB / 352.3 MB, free: 4.805 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003269/0.009105, allocations: 399.2 kB / 352.7 MB, free: 4.414 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002661/0.009371, allocations: 291.2 kB / 353 MB, free: 4.129 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.737e-05/0.009448, allocations: 60 kB / 353 MB, free: 4.07 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.591e-05/0.009514, allocations: 64 kB / 353.1 MB, free: 4.008 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001308/0.009645, allocations: 211.3 kB / 353.3 MB, free: 3.801 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.009762, allocations: 171.6 kB / 353.4 MB, free: 3.633 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003523/0.01011, allocations: 474.4 kB / 353.9 MB, free: 3.168 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.01012, allocations: 0 / 353.9 MB, free: 3.168 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.01012, allocations: 0 / 353.9 MB, free: 3.168 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.01012, allocations: 0 / 353.9 MB, free: 3.168 MB / 282.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.001229/0.01135, allocations: 0.9128 MB / 354.8 MB, free: 2.219 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.01139, allocations: 12.03 kB / 354.8 MB, free: 2.207 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001329/0.01152, allocations: 116.6 kB / 354.9 MB, free: 2.094 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003639/0.01188, allocations: 319.1 kB / 355.3 MB, free: 1.75 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002418/0.01212, allocations: 0.6552 MB / 355.9 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.101e-05/0.01219, allocations: 44.38 kB / 356 MB, free: 0.918 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008273/0.01302, allocations: 0.5798 MB / 356.5 MB, free: 288 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/0.01304, allocations: 8.125 kB / 356.5 MB, free: 280 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.375e-05/0.01308, allocations: 24.12 kB / 356.6 MB, free: 256 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.01309, allocations: 8 kB / 356.6 MB, free: 248 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009383/0.01403, allocations: 473.5 kB / 357 MB, free: 15.78 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002069/0.0161, allocations: 2.172 MB / 359.2 MB, free: 13.53 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001014/0.01711, allocations: 422.4 kB / 359.6 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003574/0.01747, allocations: 185.2 kB / 359.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.813e-05/0.01754, allocations: 12 kB / 359.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.867e-05/0.01757, allocations: 45.33 kB / 359.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=66): time 2.024e-06/0.01757, allocations: 4 kB / 359.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=122): time 0.01875/0.03632, allocations: 7.723 MB / 367.6 MB, free: 5.02 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.328e-05/0.03637, allocations: 90.11 kB / 367.7 MB, free: 4.914 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003051/0.03667, allocations: 406.5 kB / 368.1 MB, free: 4.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.624e-05/0.03677, allocations: 45.7 kB / 368.1 MB, free: 4.449 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.03689, allocations: 272.3 kB / 368.4 MB, free: 4.176 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002772/0.03717, allocations: 424.3 kB / 368.8 MB, free: 3.758 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003739/0.03754, allocations: 204.5 kB / 369 MB, free: 3.551 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.0377, allocations: 0.5469 MB / 369.5 MB, free: 2.992 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008833/0.03859, allocations: 0.6507 MB / 370.2 MB, free: 2.336 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009821/0.03957, allocations: 0.849 MB / 371 MB, free: 1.426 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001565/0.04113, allocations: 1.292 MB / 372.3 MB, free: 76 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.04114, allocations: 0 / 372.3 MB, free: 76 kB / 298.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.002179/0.04332, allocations: 1.626 MB / 374 MB, free: 14.44 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.04334, allocations: 4 kB / 374 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.04335, allocations: 4 kB / 374 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.531e-05/0.04337, allocations: 8 kB / 374 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/0.04458, allocations: 359.7 kB / 374.3 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/0.04459, allocations: 8 kB / 374.3 MB, free: 14.06 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000918/0.04551, allocations: 163.8 kB / 374.5 MB, free: 13.9 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.562e-05/0.0456, allocations: 39.98 kB / 374.5 MB, free: 13.86 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 (kinematicPTP2a.noWphase,kinematicPTP2b.noWphase,kinematicPTP2b.motion_ref,kinematicPTP2b.moving[1],kinematicPTP1a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1b.motion_ref,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 (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.0002764/0.04588, allocations: 228.3 kB / 374.8 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002102/0.04609, allocations: 103.6 kB / 374.9 MB, free: 13.53 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001074/0.0462, allocations: 112.7 kB / 375 MB, free: 13.42 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.0462, allocations: 12 kB / 375 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/0.04622, allocations: 8 kB / 375 MB, free: 13.4 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.04622, allocations: 3.984 kB / 375 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004414/0.05064, allocations: 3.237 MB / 378.2 MB, free: 9.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/0.05065, allocations: 20 kB / 378.2 MB, free: 9.711 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006849/0.05134, allocations: 299.4 kB / 378.5 MB, free: 9.418 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.028e-05/0.05136, allocations: 28 kB / 378.6 MB, free: 9.391 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.474e-05/0.05142, allocations: 56.23 kB / 378.6 MB, free: 9.336 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-05/0.05145, allocations: 43.86 kB / 378.7 MB, free: 9.293 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.567e-05/0.05146, allocations: 31.88 kB / 378.7 MB, free: 9.262 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002024/0.05349, allocations: 2.099 MB / 380.8 MB, free: 6.758 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002394/0.05372, allocations: 175.4 kB / 381 MB, free: 6.586 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.092e-05/0.05381, allocations: 47.98 kB / 381 MB, free: 6.539 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005263/0.05433, allocations: 139.9 kB / 381.2 MB, free: 6.402 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002746/0.05461, allocations: 203.2 kB / 381.3 MB, free: 6.203 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.63e-05/0.05466, allocations: 60 kB / 381.4 MB, free: 6.145 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000172/0.05483, allocations: 259.1 kB / 381.7 MB, free: 5.895 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.05483, allocations: 0 / 381.7 MB, free: 5.895 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006174/0.05545, allocations: 235.9 kB / 381.9 MB, free: 5.664 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.0001561/0.05561, allocations: 170.8 kB / 382.1 MB, free: 5.484 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001555/0.05716, allocations: 1.166 MB / 383.2 MB, free: 4.312 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.644e-06/0.05717, allocations: 4 kB / 383.2 MB, free: 4.309 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004748/0.05765, allocations: 366.8 kB / 383.6 MB, free: 3.957 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008094/0.05846, allocations: 211.8 kB / 383.8 MB, free: 3.754 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002047/0.0605, allocations: 1.995 MB / 385.8 MB, free: 1.324 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001393/0.06064, allocations: 185 kB / 386 MB, free: 1.121 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005242/0.06117, allocations: 189.9 kB / 386.2 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004195/0.06159, allocations: 76.48 kB / 386.2 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of SimCode: time 7.82e-07/0.06159, allocations: 4 kB / 386.2 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of Templates: time 0.01726/0.07885, allocations: 18.26 MB / 404.5 MB, free: 14.58 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.6029328140430152]