Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001055/0.001055, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001023/0.001023, allocations: 165 kB / 24.56 MB, free: 12 kB / 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 1.003/1.003, allocations: 177.1 MB / 205 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2795/0.2795, allocations: 34.25 MB / 295.7 MB, free: 0.7422 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Blocks.KinematicPTP") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.714e-06/1.714e-06, allocations: 0 / 378 MB, free: 2.648 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.634e-05/2.805e-05, allocations: 2.312 kB / 378 MB, free: 2.645 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003989/0.004017, allocations: 2.355 MB / 380.4 MB, free: 276 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002045/0.006062, allocations: 0.9476 MB / 381.3 MB, free: 15.31 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002899/0.006352, allocations: 7.938 kB / 381.3 MB, free: 15.3 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000497/0.006849, allocations: 131.2 kB / 381.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002516/0.0071, allocations: 103.3 kB / 381.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005832/0.007684, allocations: 295.4 kB / 381.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009648/0.008648, allocations: 0.7328 MB / 382.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001452/0.008794, allocations: 41.27 kB / 382.6 MB, free: 14.01 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003299/0.009124, allocations: 395.2 kB / 383 MB, free: 13.62 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002791/0.009403, allocations: 291.2 kB / 383.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.473e-05/0.009477, allocations: 60 kB / 383.4 MB, free: 13.28 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.402e-05/0.009541, allocations: 64 kB / 383.4 MB, free: 13.21 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001501/0.009692, allocations: 211.3 kB / 383.6 MB, free: 13.01 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.009818, allocations: 167.6 kB / 383.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004058/0.01022, allocations: 462.5 kB / 384.2 MB, free: 12.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.01023, allocations: 3.938 kB / 384.2 MB, free: 12.39 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.01023, allocations: 0 / 384.2 MB, free: 12.39 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.01024, allocations: 0 / 384.2 MB, free: 12.39 MB / 362.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.00121/0.01145, allocations: 0.9167 MB / 385.2 MB, free: 11.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.0115, allocations: 12.03 kB / 385.2 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.01164, allocations: 112.6 kB / 385.3 MB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004104/0.01205, allocations: 319.1 kB / 385.6 MB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003719/0.01242, allocations: 0.6552 MB / 386.2 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.738e-05/0.0125, allocations: 44.38 kB / 386.3 MB, free: 10.14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000792/0.01329, allocations: 0.5759 MB / 386.9 MB, free: 9.508 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.0133, allocations: 4.188 kB / 386.9 MB, free: 9.504 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.039e-05/0.01334, allocations: 28.12 kB / 386.9 MB, free: 9.477 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.01336, allocations: 8 kB / 386.9 MB, free: 9.469 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007252/0.01408, allocations: 465.7 kB / 387.4 MB, free: 9.016 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001973/0.01606, allocations: 2.164 MB / 389.5 MB, free: 6.766 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007725/0.01683, allocations: 427.5 kB / 389.9 MB, free: 6.324 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002566/0.01708, allocations: 184.4 kB / 390.1 MB, free: 6.137 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.679e-05/0.01714, allocations: 8.562 kB / 390.1 MB, free: 6.129 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.881e-05/0.01717, allocations: 46.45 kB / 390.2 MB, free: 6.074 MB / 362.7 MB Notification: Performance of pre-optimization done (n=66): time 1.894e-06/0.01717, allocations: 0 / 390.2 MB, free: 6.074 MB / 362.7 MB Notification: Performance of matching and sorting (n=122): time 0.01717/0.03435, allocations: 7.714 MB / 397.9 MB, free: 14.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.185e-05/0.03441, allocations: 90.11 kB / 398 MB, free: 14.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003873/0.03479, allocations: 410.5 kB / 398.4 MB, free: 13.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001138/0.03491, allocations: 45.7 kB / 398.4 MB, free: 13.69 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.03505, allocations: 280.2 kB / 398.7 MB, free: 13.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002938/0.03535, allocations: 416.4 kB / 399.1 MB, free: 13 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003842/0.03573, allocations: 204.5 kB / 399.3 MB, free: 12.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002505/0.03598, allocations: 0.5508 MB / 399.9 MB, free: 12.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009974/0.03698, allocations: 0.6546 MB / 400.5 MB, free: 11.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001025/0.038, allocations: 0.844 MB / 401.4 MB, free: 10.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001677/0.03968, allocations: 1.296 MB / 402.7 MB, free: 9.324 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.03969, allocations: 0 / 402.7 MB, free: 9.324 MB / 378.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.002693/0.04238, allocations: 1.618 MB / 404.3 MB, free: 7.695 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.943e-05/0.04241, allocations: 8 kB / 404.3 MB, free: 7.688 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.04242, allocations: 4 kB / 404.3 MB, free: 7.684 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.311e-05/0.04244, allocations: 8 kB / 404.3 MB, free: 7.676 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/0.04374, allocations: 351.5 kB / 404.6 MB, free: 7.332 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.731e-05/0.04375, allocations: 11.94 kB / 404.6 MB, free: 7.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007856/0.04454, allocations: 163.8 kB / 404.8 MB, free: 7.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001045/0.04464, allocations: 51.91 kB / 404.9 MB, free: 7.109 MB / 378.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.0003253/0.04497, allocations: 224.2 kB / 405.1 MB, free: 6.879 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002171/0.04519, allocations: 111.5 kB / 405.2 MB, free: 6.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000115/0.0453, allocations: 108.7 kB / 405.3 MB, free: 6.656 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.04531, allocations: 15.98 kB / 405.3 MB, free: 6.641 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-05/0.04533, allocations: 8 kB / 405.3 MB, free: 6.633 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.04533, allocations: 3.984 kB / 405.3 MB, free: 6.629 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004599/0.04993, allocations: 3.238 MB / 408.6 MB, free: 2.961 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.465e-05/0.04995, allocations: 24 kB / 408.6 MB, free: 2.938 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000662/0.05061, allocations: 303.5 kB / 408.9 MB, free: 2.641 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.826e-05/0.05063, allocations: 28 kB / 408.9 MB, free: 2.613 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-05/0.05069, allocations: 51.98 kB / 409 MB, free: 2.562 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.192e-05/0.05071, allocations: 35.86 kB / 409 MB, free: 2.527 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.609e-05/0.05073, allocations: 35.81 kB / 409 MB, free: 2.492 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00268/0.05341, allocations: 2.099 MB / 411.1 MB, free: 15.99 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000251/0.05366, allocations: 175.3 kB / 411.3 MB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.927e-05/0.05374, allocations: 51.98 kB / 411.3 MB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005296/0.05427, allocations: 127.9 kB / 411.5 MB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002745/0.05454, allocations: 211.2 kB / 411.7 MB, free: 15.44 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.565e-05/0.0546, allocations: 56 kB / 411.7 MB, free: 15.38 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001713/0.05477, allocations: 259.1 kB / 412 MB, free: 15.13 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.05477, allocations: 0 / 412 MB, free: 15.13 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007154/0.05549, allocations: 235.9 kB / 412.2 MB, free: 14.9 MB / 394.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.0001703/0.05566, allocations: 170.7 kB / 412.4 MB, free: 14.72 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001573/0.05723, allocations: 1.162 MB / 413.5 MB, free: 13.56 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/0.05724, allocations: 0 / 413.5 MB, free: 13.56 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004751/0.05771, allocations: 377.5 kB / 413.9 MB, free: 13.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008075/0.05852, allocations: 201.1 kB / 414.1 MB, free: 13 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002133/0.06065, allocations: 2.002 MB / 416.1 MB, free: 10.57 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001524/0.06081, allocations: 192.9 kB / 416.3 MB, free: 10.36 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005719/0.06138, allocations: 201.9 kB / 416.5 MB, free: 10.16 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004094/0.06179, allocations: 72.48 kB / 416.6 MB, free: 10.09 MB / 394.7 MB Notification: Performance of SimCode: time 1.232e-06/0.06179, allocations: 0 / 416.6 MB, free: 10.09 MB / 394.7 MB Notification: Performance of Templates: time 0.02321/0.085, allocations: 19.18 MB / 435.7 MB, free: 7.039 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.6136796637438238]