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.0008479/0.0008479, allocations: 83.62 kB / 21.43 MB, free: 3.133 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.004897/0.004897, allocations: 158.6 kB / 24.7 MB, free: 8.891 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.8525/0.8525, allocations: 177.1 MB / 205 MB, free: 5.734 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.2417/0.2417, allocations: 34.26 MB / 295.7 MB, free: 0.6914 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.343e-06/1.343e-06, allocations: 0 / 443.4 MB, free: 1.184 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.38e-05/2.514e-05, allocations: 6.219 kB / 443.4 MB, free: 1.176 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.1624/0.1625, allocations: 2.254 MB / 445.7 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009648/0.1634, allocations: 0.9399 MB / 446.6 MB, free: 42.99 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.1635, allocations: 13.94 kB / 446.6 MB, free: 42.98 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002699/0.1638, allocations: 123.6 kB / 446.8 MB, free: 42.94 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001399/0.1639, allocations: 99.16 kB / 446.9 MB, free: 42.9 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003408/0.1643, allocations: 296.6 kB / 447.1 MB, free: 42.79 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003495/0.1646, allocations: 0.7281 MB / 447.9 MB, free: 42.48 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.1647, allocations: 43.98 kB / 447.9 MB, free: 42.46 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002218/0.165, allocations: 396.1 kB / 448.3 MB, free: 42.29 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002069/0.1652, allocations: 294.4 kB / 448.6 MB, free: 42.2 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.273e-05/0.1652, allocations: 61.09 kB / 448.6 MB, free: 42.2 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.557e-05/0.1653, allocations: 61.59 kB / 448.7 MB, free: 42.2 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001027/0.1654, allocations: 201.8 kB / 448.9 MB, free: 42.09 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 8.321e-05/0.1655, allocations: 175.8 kB / 449.1 MB, free: 41.99 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003313/0.1658, allocations: 0.6132 MB / 449.7 MB, free: 41.74 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1658, allocations: 0.5625 kB / 449.7 MB, free: 41.74 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1658, allocations: 6.719 kB / 449.7 MB, free: 41.74 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.1658, allocations: 0 / 449.7 MB, free: 41.74 MB / 410.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.001118/0.1669, allocations: 0.8711 MB / 450.6 MB, free: 41.25 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.167, allocations: 8.188 kB / 450.6 MB, free: 41.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.106e-05/0.167, allocations: 67.3 kB / 450.6 MB, free: 41.22 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.1674, allocations: 327.8 kB / 451 MB, free: 40.98 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002114/0.1676, allocations: 0.6659 MB / 451.6 MB, free: 40.27 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.145e-05/0.1677, allocations: 44.72 kB / 451.7 MB, free: 40.25 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009948/0.1687, allocations: 0.8221 MB / 452.5 MB, free: 39.92 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.1687, allocations: 192 / 452.5 MB, free: 39.92 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.397e-05/0.1687, allocations: 25.91 kB / 452.5 MB, free: 39.9 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.1687, allocations: 9 kB / 452.5 MB, free: 39.9 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001675/0.1704, allocations: 1.213 MB / 453.7 MB, free: 39.62 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00131/0.1717, allocations: 1.844 MB / 455.6 MB, free: 38.27 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/0.173, allocations: 0.7508 MB / 456.3 MB, free: 38.05 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007144/0.1738, allocations: 465.8 kB / 456.8 MB, free: 37.92 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.345e-05/0.1738, allocations: 6.281 kB / 456.8 MB, free: 37.92 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.542e-05/0.1738, allocations: 45.31 kB / 456.8 MB, free: 37.87 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 1.663e-06/0.1738, allocations: 0 / 456.8 MB, free: 37.87 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.03983/0.2137, allocations: 15.55 MB / 472.4 MB, free: 34.35 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.12e-05/0.2137, allocations: 89.27 kB / 472.5 MB, free: 34.26 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003208/0.214, allocations: 418.8 kB / 472.9 MB, free: 34.05 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001112/0.2141, allocations: 44.73 kB / 472.9 MB, free: 34.01 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.038e-05/0.2142, allocations: 218.3 kB / 473.1 MB, free: 33.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001952/0.2144, allocations: 412.5 kB / 473.5 MB, free: 33.49 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003268/0.2147, allocations: 200.2 kB / 473.7 MB, free: 33.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.519e-05/0.2148, allocations: 378.4 kB / 474.1 MB, free: 33.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001921/0.2167, allocations: 1.361 MB / 475.5 MB, free: 32.54 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002177/0.2189, allocations: 1.504 MB / 477 MB, free: 31.88 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003882/0.2228, allocations: 2.461 MB / 479.4 MB, free: 30.84 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.2228, allocations: 1.25 kB / 479.4 MB, free: 30.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.004438/0.2272, allocations: 2.852 MB / 482.3 MB, free: 29.74 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.2272, allocations: 6.469 kB / 482.3 MB, free: 29.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.2272, allocations: 2.938 kB / 482.3 MB, free: 29.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.463e-05/0.2273, allocations: 13.5 kB / 482.3 MB, free: 29.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001296/0.2286, allocations: 406.7 kB / 482.7 MB, free: 29.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.458e-05/0.2286, allocations: 13.2 kB / 482.7 MB, free: 29.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009632/0.2295, allocations: 220.4 kB / 482.9 MB, free: 29.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.543e-05/0.2296, allocations: 40.11 kB / 483 MB, free: 29.68 MB / 410.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.0003493/0.23, allocations: 239.1 kB / 483.2 MB, free: 29.48 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.2301, allocations: 66.92 kB / 483.3 MB, free: 29.45 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001109/0.2302, allocations: 107.4 kB / 483.4 MB, free: 29.35 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.976e-06/0.2302, allocations: 12.88 kB / 483.4 MB, free: 29.35 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.755e-05/0.2303, allocations: 0 / 483.4 MB, free: 29.35 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/0.2303, allocations: 7.375 kB / 483.4 MB, free: 29.35 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006672/0.2369, allocations: 4.788 MB / 488.2 MB, free: 27.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-05/0.2369, allocations: 21.28 kB / 488.2 MB, free: 27.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007592/0.2377, allocations: 364.7 kB / 488.6 MB, free: 26.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.017e-05/0.2377, allocations: 29.09 kB / 488.6 MB, free: 26.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.791e-05/0.2378, allocations: 47.66 kB / 488.6 MB, free: 26.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.371e-05/0.2378, allocations: 39.81 kB / 488.7 MB, free: 26.95 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.732e-05/0.2378, allocations: 36.28 kB / 488.7 MB, free: 26.94 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004165/0.242, allocations: 3.081 MB / 491.8 MB, free: 25.28 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003132/0.2423, allocations: 176.3 kB / 492 MB, free: 25.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.378e-05/0.2424, allocations: 51.62 kB / 492 MB, free: 25.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006772/0.2431, allocations: 196.5 kB / 492.2 MB, free: 25.16 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003056/0.2434, allocations: 222.5 kB / 492.4 MB, free: 25.08 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.004e-05/0.2434, allocations: 61.91 kB / 492.5 MB, free: 25.07 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000239/0.2437, allocations: 283 kB / 492.8 MB, free: 24.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2437, allocations: 1 kB / 492.8 MB, free: 24.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007571/0.2444, allocations: 234 kB / 493 MB, free: 24.89 MB / 410.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.0001669/0.2446, allocations: 172.9 kB / 493.2 MB, free: 24.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003731/0.2483, allocations: 2.181 MB / 495.3 MB, free: 24.04 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.298e-05/0.2483, allocations: 3.156 kB / 495.4 MB, free: 24.04 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002096/0.2504, allocations: 1.066 MB / 496.4 MB, free: 23.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008436/0.2513, allocations: 153.6 kB / 496.6 MB, free: 23.65 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002342/0.2536, allocations: 1.995 MB / 498.6 MB, free: 22.15 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002952/0.2539, allocations: 329.2 kB / 498.9 MB, free: 22.04 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005222/0.2544, allocations: 77.77 kB / 499 MB, free: 22.02 MB / 410.7 MB Notification: Performance of SimCode: time 1.253e-06/0.2544, allocations: 0 / 499 MB, free: 22.02 MB / 410.7 MB Notification: Performance of Templates: time 0.01225/0.2667, allocations: 14.53 MB / 0.5015 GB, free: 9.281 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.250663550570607]