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.001575/0.001575, allocations: 84.55 kB / 20.68 MB, free: 1.023 MB / 14.72 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.00167/0.00167, allocations: 163.9 kB / 23.95 MB, free: 4.156 MB / 14.72 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.365/1.365, allocations: 177.1 MB / 204.3 MB, free: 9.172 MB / 190.1 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.1963/0.1963, allocations: 32.82 MB / 293.5 MB, free: 28 kB / 270.1 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.443e-06/1.443e-06, allocations: 0 / 440.1 MB, free: 8.172 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.623e-05/2.767e-05, allocations: 5.234 kB / 440.1 MB, free: 8.168 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003693/0.003721, allocations: 2.244 MB / 442.3 MB, free: 5.906 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001834/0.005555, allocations: 0.959 MB / 443.3 MB, free: 4.941 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001376/0.005693, allocations: 7.938 kB / 443.3 MB, free: 4.934 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003761/0.006069, allocations: 115.3 kB / 443.4 MB, free: 4.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002511/0.00632, allocations: 107.2 kB / 443.5 MB, free: 4.715 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006947/0.007015, allocations: 291.4 kB / 443.8 MB, free: 4.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008284/0.007843, allocations: 0.725 MB / 444.5 MB, free: 3.703 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001391/0.007982, allocations: 49.19 kB / 444.6 MB, free: 3.652 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004621/0.008444, allocations: 395.2 kB / 444.9 MB, free: 3.266 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004076/0.008852, allocations: 295.2 kB / 445.2 MB, free: 2.977 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001258/0.008978, allocations: 60 kB / 445.3 MB, free: 2.918 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.934e-05/0.009077, allocations: 64 kB / 445.4 MB, free: 2.855 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002208/0.009298, allocations: 199.4 kB / 445.5 MB, free: 2.66 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001986/0.009496, allocations: 179.5 kB / 445.7 MB, free: 2.484 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006709/0.01017, allocations: 0.6154 MB / 446.3 MB, free: 1.867 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.01017, allocations: 0 / 446.3 MB, free: 1.867 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.01017, allocations: 0 / 446.3 MB, free: 1.867 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.01018, allocations: 0 / 446.3 MB, free: 1.867 MB / 366.1 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.002446/0.01262, allocations: 0.8753 MB / 447.2 MB, free: 0.957 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.01265, allocations: 8.031 kB / 447.2 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001235/0.01278, allocations: 72.55 kB / 447.3 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005895/0.01337, allocations: 312.4 kB / 447.6 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.1624/0.1757, allocations: 0.6679 MB / 448.3 MB, free: 21.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002011/0.1759, allocations: 44.28 kB / 448.3 MB, free: 21.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002211/0.1781, allocations: 0.8192 MB / 449.1 MB, free: 21.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/0.1782, allocations: 4.688 kB / 449.1 MB, free: 21.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.787e-05/0.1782, allocations: 18.75 kB / 449.2 MB, free: 21.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.1782, allocations: 9.406 kB / 449.2 MB, free: 21.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003766/0.182, allocations: 1.219 MB / 450.4 MB, free: 21.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002285/0.1843, allocations: 1.837 MB / 452.2 MB, free: 19.87 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002836/0.1871, allocations: 0.7466 MB / 453 MB, free: 19.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00155/0.1887, allocations: 467.8 kB / 453.4 MB, free: 19.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.464e-05/0.1887, allocations: 13.38 kB / 453.4 MB, free: 19.53 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.953e-05/0.1888, allocations: 43.22 kB / 453.5 MB, free: 19.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.535e-06/0.1888, allocations: 1.375 kB / 453.5 MB, free: 19.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.0912/0.28, allocations: 15.56 MB / 469 MB, free: 13.94 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.561e-05/0.28, allocations: 90.48 kB / 469.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004255/0.2804, allocations: 413.5 kB / 469.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001543/0.2806, allocations: 45.73 kB / 469.6 MB, free: 13.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.2807, allocations: 217 kB / 469.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002858/0.281, allocations: 427.7 kB / 470.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005458/0.2815, allocations: 196.8 kB / 470.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.063e-05/0.2816, allocations: 371 kB / 470.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003671/0.2853, allocations: 1.36 MB / 472.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003643/0.2889, allocations: 1.504 MB / 473.6 MB, free: 10.67 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006403/0.2953, allocations: 2.453 MB / 476.1 MB, free: 8.176 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.2953, allocations: 4 kB / 476.1 MB, free: 8.172 MB / 366.1 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.007313/0.3026, allocations: 2.854 MB / 478.9 MB, free: 5.312 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.3027, allocations: 11.94 kB / 478.9 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.3027, allocations: 4.078 kB / 479 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.082e-05/0.3027, allocations: 12 kB / 479 MB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002687/0.3054, allocations: 411.4 kB / 479.4 MB, free: 4.887 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.094e-05/0.3054, allocations: 13.78 kB / 479.4 MB, free: 4.875 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002035/0.3074, allocations: 219.7 kB / 479.6 MB, free: 4.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001589/0.3076, allocations: 39.98 kB / 479.6 MB, free: 4.621 MB / 366.1 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.0004396/0.308, allocations: 237.9 kB / 479.9 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002217/0.3083, allocations: 67.58 kB / 479.9 MB, free: 4.312 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000225/0.3085, allocations: 116.7 kB / 480 MB, free: 4.199 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.3085, allocations: 12 kB / 480.1 MB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.887e-05/0.3085, allocations: 0 / 480.1 MB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/0.3085, allocations: 7.969 kB / 480.1 MB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01063/0.3192, allocations: 4.78 MB / 484.8 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.959e-05/0.3192, allocations: 20 kB / 484.9 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001632/0.3208, allocations: 365.8 kB / 485.2 MB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.077e-05/0.3209, allocations: 28 kB / 485.2 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/0.321, allocations: 48 kB / 485.3 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.563e-05/0.321, allocations: 40.73 kB / 485.3 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.204e-05/0.321, allocations: 35.88 kB / 485.4 MB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008362/0.3294, allocations: 3.093 MB / 488.5 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004001/0.3298, allocations: 171.5 kB / 488.6 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001464/0.3299, allocations: 51.98 kB / 488.7 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001433/0.3314, allocations: 191.8 kB / 488.9 MB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004842/0.3319, allocations: 235.1 kB / 489.1 MB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001118/0.332, allocations: 60.88 kB / 489.2 MB, free: 10.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003367/0.3323, allocations: 275.1 kB / 489.4 MB, free: 10.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3323, allocations: 0 / 489.4 MB, free: 10.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001025/0.3333, allocations: 236 kB / 489.7 MB, free: 9.996 MB / 382.1 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.0002421/0.3336, allocations: 171.3 kB / 489.8 MB, free: 9.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006989/0.3406, allocations: 2.187 MB / 492 MB, free: 7.641 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.233e-06/0.3406, allocations: 0 / 492 MB, free: 7.641 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003698/0.3443, allocations: 1.07 MB / 493.1 MB, free: 6.578 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001251/0.3455, allocations: 151.4 kB / 493.2 MB, free: 6.441 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004276/0.3498, allocations: 1.949 MB / 495.2 MB, free: 4.176 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003935/0.3502, allocations: 333.8 kB / 495.5 MB, free: 3.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009701/0.3512, allocations: 205.9 kB / 495.7 MB, free: 3.617 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006272/0.3518, allocations: 72.48 kB / 495.8 MB, free: 3.547 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3518, allocations: 0 / 495.8 MB, free: 3.547 MB / 382.1 MB Notification: Performance of Templates: time 0.02795/0.3797, allocations: 17.96 MB / 0.5017 GB, free: 1.742 MB / 398.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.176204439252615]