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.000859/0.000859, allocations: 79.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.000879/0.000879, 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.001/1.001, allocations: 177.1 MB / 205 MB, free: 5.445 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.2587/0.2587, allocations: 32.8 MB / 294.3 MB, free: 1.18 MB / 266.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.703e-06/1.703e-06, allocations: 0 / 376 MB, free: 4.641 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.714e-05/2.884e-05, allocations: 2.312 kB / 376 MB, free: 4.637 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004275/0.004304, allocations: 2.333 MB / 378.3 MB, free: 2.281 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002036/0.00634, allocations: 0.9513 MB / 379.3 MB, free: 1.324 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002889/0.006629, allocations: 15.81 kB / 379.3 MB, free: 1.309 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004569/0.007086, allocations: 119.2 kB / 379.4 MB, free: 1.191 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000324/0.00741, allocations: 107.3 kB / 379.5 MB, free: 1.086 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007999/0.00821, allocations: 295.4 kB / 379.8 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008913/0.009101, allocations: 0.7289 MB / 380.6 MB, free: 68 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001853/0.009286, allocations: 45.25 kB / 380.6 MB, free: 20 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006283/0.009915, allocations: 395.2 kB / 381 MB, free: 15.63 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004714/0.01039, allocations: 291.2 kB / 381.3 MB, free: 15.35 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001801/0.01057, allocations: 60 kB / 381.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001097/0.01068, allocations: 64 kB / 381.4 MB, free: 15.23 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001956/0.01087, allocations: 203.4 kB / 381.6 MB, free: 15.03 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000201/0.01107, allocations: 179.5 kB / 381.8 MB, free: 14.85 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005976/0.01167, allocations: 466.4 kB / 382.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.01167, allocations: 0 / 382.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.01167, allocations: 0 / 382.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.01169, allocations: 0 / 382.2 MB, free: 14.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.001801/0.01349, allocations: 0.909 MB / 383.1 MB, free: 13.45 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.01354, allocations: 11.97 kB / 383.1 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001937/0.01373, allocations: 116.6 kB / 383.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009917/0.01472, allocations: 319.2 kB / 383.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000477/0.0152, allocations: 0.6591 MB / 384.2 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.765e-05/0.0153, allocations: 40.38 kB / 384.3 MB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001193/0.01649, allocations: 0.5798 MB / 384.8 MB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.495e-05/0.01651, allocations: 4.125 kB / 384.8 MB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.049e-05/0.01657, allocations: 20.12 kB / 384.9 MB, free: 11.49 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.64e-05/0.01659, allocations: 16 kB / 384.9 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001158/0.01775, allocations: 473.7 kB / 385.3 MB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002512/0.02026, allocations: 2.164 MB / 387.5 MB, free: 8.766 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/0.02156, allocations: 425.4 kB / 387.9 MB, free: 8.328 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004076/0.02196, allocations: 184.4 kB / 388.1 MB, free: 8.141 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.26e-05/0.02204, allocations: 12.56 kB / 388.1 MB, free: 8.129 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.834e-05/0.02208, allocations: 42.52 kB / 388.2 MB, free: 8.078 MB / 362.7 MB Notification: Performance of pre-optimization done (n=66): time 3.657e-06/0.02208, allocations: 3.938 kB / 388.2 MB, free: 8.074 MB / 362.7 MB Notification: Performance of matching and sorting (n=122): time 0.02312/0.0452, allocations: 7.71 MB / 395.9 MB, free: 276 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.031e-05/0.04525, allocations: 94.11 kB / 396 MB, free: 160 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003538/0.0456, allocations: 406.5 kB / 396.4 MB, free: 15.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001296/0.04573, allocations: 45.7 kB / 396.4 MB, free: 15.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000136/0.04587, allocations: 268.3 kB / 396.7 MB, free: 15.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003047/0.04617, allocations: 424.4 kB / 397.1 MB, free: 15.01 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003625/0.04653, allocations: 204.5 kB / 397.3 MB, free: 14.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0004385/0.04697, allocations: 0.5469 MB / 397.8 MB, free: 14.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009121/0.04788, allocations: 0.6546 MB / 398.5 MB, free: 13.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009622/0.04885, allocations: 0.8489 MB / 399.3 MB, free: 12.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001548/0.05039, allocations: 1.296 MB / 400.6 MB, free: 11.33 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.0504, allocations: 4 kB / 400.6 MB, free: 11.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.002223/0.05262, allocations: 1.61 MB / 402.2 MB, free: 9.707 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.05265, allocations: 8.312 kB / 402.3 MB, free: 9.699 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.05266, allocations: 11.98 kB / 402.3 MB, free: 9.688 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.286e-05/0.05268, allocations: 8 kB / 402.3 MB, free: 9.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/0.05392, allocations: 355.5 kB / 402.6 MB, free: 9.332 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.758e-05/0.05394, allocations: 8 kB / 402.6 MB, free: 9.324 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007897/0.05473, allocations: 163.8 kB / 402.8 MB, free: 9.164 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.352e-05/0.05482, allocations: 43.98 kB / 402.8 MB, free: 9.121 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.0003385/0.05516, allocations: 224.2 kB / 403 MB, free: 8.891 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002164/0.05538, allocations: 103.6 kB / 403.1 MB, free: 8.789 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001107/0.05549, allocations: 112.7 kB / 403.3 MB, free: 8.672 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.877e-06/0.0555, allocations: 12 kB / 403.3 MB, free: 8.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.05551, allocations: 3.984 kB / 403.3 MB, free: 8.656 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.05552, allocations: 7.984 kB / 403.3 MB, free: 8.648 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004671/0.06019, allocations: 3.23 MB / 406.5 MB, free: 4.984 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/0.0602, allocations: 20 kB / 406.5 MB, free: 4.965 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006454/0.06085, allocations: 312.2 kB / 406.8 MB, free: 4.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.139e-05/0.06087, allocations: 28 kB / 406.9 MB, free: 4.633 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.224e-05/0.06093, allocations: 47.98 kB / 406.9 MB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.141e-05/0.06095, allocations: 43.86 kB / 407 MB, free: 4.543 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.56e-05/0.06097, allocations: 31.88 kB / 407 MB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001953/0.06292, allocations: 2.106 MB / 409.1 MB, free: 2.004 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002632/0.06318, allocations: 171.4 kB / 409.3 MB, free: 1.836 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.274e-05/0.06327, allocations: 51.98 kB / 409.3 MB, free: 1.785 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000536/0.0638, allocations: 131.9 kB / 409.4 MB, free: 1.656 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002891/0.06409, allocations: 215.2 kB / 409.6 MB, free: 1.445 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.667e-05/0.06415, allocations: 60 kB / 409.7 MB, free: 1.387 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001758/0.06432, allocations: 259 kB / 410 MB, free: 1.133 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.06432, allocations: 0 / 410 MB, free: 1.133 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007703/0.06509, allocations: 239.9 kB / 410.2 MB, free: 0.8984 MB / 378.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.0001938/0.06529, allocations: 166.7 kB / 410.4 MB, free: 0.7266 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001894/0.06718, allocations: 1.158 MB / 411.5 MB, free: 15.57 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.06719, allocations: 0 / 411.5 MB, free: 15.57 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004987/0.06769, allocations: 370.9 kB / 411.9 MB, free: 15.21 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008391/0.06853, allocations: 209.3 kB / 412.1 MB, free: 15 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002169/0.0707, allocations: 2.008 MB / 414.1 MB, free: 12.56 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001711/0.07087, allocations: 184.9 kB / 414.3 MB, free: 12.36 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006121/0.07148, allocations: 193.9 kB / 414.5 MB, free: 12.17 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000425/0.0719, allocations: 72.48 kB / 414.5 MB, free: 12.1 MB / 394.7 MB Notification: Performance of SimCode: time 1.744e-06/0.07191, allocations: 0 / 414.5 MB, free: 12.1 MB / 394.7 MB Notification: Performance of Templates: time 0.02077/0.09268, allocations: 19.19 MB / 433.7 MB, free: 9.043 MB / 410.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 -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.4912170213647187]