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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000931/0.0009313, allocations: 97.91 kB / 17 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 182.3 kB / 17.89 MB, free: 6.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.566/1.566, allocations: 223.3 MB / 241.9 MB, free: 304 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2433/0.2433, allocations: 44.26 MB / 337.3 MB, free: 2.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002983/0.0002983, allocations: 8.844 kB / 409.7 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.1491, allocations: 61.93 MB / 471.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002418/0.1516, allocations: 1.986 MB / 473.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001583/0.1532, allocations: 0.8972 MB / 474.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001316/0.1533, allocations: 11.88 kB / 474.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003153/0.1536, allocations: 91.52 kB / 474.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001813/0.1538, allocations: 71.58 kB / 474.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000521/0.1543, allocations: 227.6 kB / 474.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006153/0.155, allocations: 0.6159 MB / 475.5 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000151/0.1551, allocations: 61.23 kB / 475.5 MB, free: 9.734 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003202/0.1555, allocations: 259.1 kB / 475.8 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003335/0.1558, allocations: 302.7 kB / 476.1 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.666e-05/0.1559, allocations: 35.94 kB / 476.1 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.107e-05/0.1559, allocations: 28 kB / 476.1 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001693/0.1561, allocations: 155.6 kB / 476.3 MB, free: 8.969 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.92e-05/0.1562, allocations: 97.45 kB / 476.4 MB, free: 8.867 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003484/0.1566, allocations: 379.3 kB / 476.8 MB, free: 8.496 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1566, allocations: 0 / 476.8 MB, free: 8.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.1566, allocations: 4 kB / 476.8 MB, free: 8.492 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.1566, allocations: 3.938 kB / 476.8 MB, free: 8.488 MB / 350.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.001959/0.1586, allocations: 0.9237 MB / 477.7 MB, free: 7.516 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.1586, allocations: 8.562 kB / 477.7 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/0.1587, allocations: 63.44 kB / 477.8 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004734/0.1592, allocations: 370 kB / 478.1 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003688/0.1596, allocations: 275.1 kB / 478.4 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.988e-05/0.1597, allocations: 43.91 kB / 478.4 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00193/0.1616, allocations: 0.8672 MB / 479.3 MB, free: 5.785 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/0.1617, allocations: 3.938 kB / 479.3 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.765e-05/0.1617, allocations: 20 kB / 479.3 MB, free: 5.762 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.1617, allocations: 11.98 kB / 479.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003424/0.1652, allocations: 1.321 MB / 480.7 MB, free: 4.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003211/0.1684, allocations: 2.077 MB / 482.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002999/0.1714, allocations: 0.9046 MB / 483.6 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001537/0.173, allocations: 0.5482 MB / 484.2 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.731e-05/0.1731, allocations: 5.062 kB / 484.2 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.064e-05/0.1731, allocations: 46.5 kB / 484.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 3.306e-06/0.1732, allocations: 0 / 484.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.09567/0.2688, allocations: 18.22 MB / 0.4907 GB, free: 14.33 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.119e-05/0.2689, allocations: 94.23 kB / 0.4908 GB, free: 14.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000484/0.2694, allocations: 393.4 kB / 0.4912 GB, free: 13.83 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001748/0.2696, allocations: 45.7 kB / 0.4912 GB, free: 13.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001549/0.2698, allocations: 213.1 kB / 0.4914 GB, free: 13.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004008/0.2702, allocations: 410 kB / 0.4918 GB, free: 13.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001491/0.2703, allocations: 20 kB / 0.4918 GB, free: 13.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.2705, allocations: 374.8 kB / 0.4922 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003395/0.2739, allocations: 1.443 MB / 0.4936 GB, free: 11.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00346/0.2774, allocations: 1.611 MB / 0.4951 GB, free: 9.672 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003189/0.2806, allocations: 1.304 MB / 0.4964 GB, free: 8.367 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.2806, allocations: 0 / 0.4964 GB, free: 8.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.00731/0.2879, allocations: 3.045 MB / 0.4994 GB, free: 5.312 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.255e-05/0.288, allocations: 15.98 kB / 0.4994 GB, free: 5.297 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.288, allocations: 7.938 kB / 0.4994 GB, free: 5.289 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.94e-05/0.288, allocations: 8 kB / 0.4994 GB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002546/0.2906, allocations: 467.3 kB / 0.4999 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.899e-05/0.2906, allocations: 11.94 kB / 0.4999 GB, free: 4.812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001944/0.2926, allocations: 283.7 kB / 0.5002 GB, free: 4.535 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000183/0.2928, allocations: 39.98 kB / 0.5002 GB, free: 4.496 MB / 382.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: 10 (kinematicPTP2a.noWphase,kinematicPTP2b.moving[1],kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.noWphase,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 (148): * Single equations (assignments): 148 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005683/0.2934, allocations: 238.6 kB / 0.5004 GB, free: 4.254 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002663/0.2936, allocations: 67.16 kB / 0.5005 GB, free: 4.188 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00031/0.2939, allocations: 112.7 kB / 0.5006 GB, free: 4.078 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-05/0.294, allocations: 12 kB / 0.5006 GB, free: 4.066 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.541e-05/0.294, allocations: 0 / 0.5006 GB, free: 4.066 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/0.294, allocations: 3.984 kB / 0.5006 GB, free: 4.062 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2761/0.5701, allocations: 5.535 MB / 0.506 GB, free: 49.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.587e-05/0.5702, allocations: 21.39 kB / 0.506 GB, free: 49.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001469/0.5716, allocations: 416.8 kB / 0.5064 GB, free: 49.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.249e-05/0.5717, allocations: 29.84 kB / 0.5065 GB, free: 49.53 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-05/0.5718, allocations: 45.59 kB / 0.5065 GB, free: 49.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.137e-05/0.5718, allocations: 39.83 kB / 0.5065 GB, free: 49.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.546e-05/0.5718, allocations: 35.81 kB / 0.5066 GB, free: 49.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007778/0.5796, allocations: 3.416 MB / 0.5099 GB, free: 48.4 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004849/0.5801, allocations: 247.7 kB / 0.5101 GB, free: 48.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001418/0.5803, allocations: 50.7 kB / 0.5102 GB, free: 48.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001286/0.5816, allocations: 248.5 kB / 0.5104 GB, free: 48.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004928/0.5821, allocations: 239.8 kB / 0.5107 GB, free: 48.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.5822, allocations: 56.34 kB / 0.5107 GB, free: 48.26 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003442/0.5825, allocations: 262.5 kB / 0.511 GB, free: 48.17 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5826, allocations: 0 / 0.511 GB, free: 48.17 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001162/0.5837, allocations: 230.6 kB / 0.5112 GB, free: 48.17 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: 6 (kinematicPTP2b.moving[1],kinematicPTP1b.moving[1],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 (120): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002587/0.584, allocations: 165.8 kB / 0.5113 GB, free: 48.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006789/0.5908, allocations: 2.559 MB / 0.5138 GB, free: 47.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.705e-05/0.5908, allocations: 3.562 kB / 0.5138 GB, free: 47.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00365/0.5945, allocations: 1.178 MB / 0.515 GB, free: 46.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001548/0.5961, allocations: 150 kB / 0.5151 GB, free: 46.87 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004484/0.6006, allocations: 2.151 MB / 0.5172 GB, free: 45.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008204/0.6014, allocations: 0.9313 MB / 0.5181 GB, free: 44.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001451/0.6029, allocations: 199.5 kB / 0.5183 GB, free: 44.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005872/0.6035, allocations: 65.56 kB / 0.5184 GB, free: 44.41 MB / 382.1 MB Notification: Performance of SimCode: time 4.799e-06/0.6035, allocations: 0 / 0.5184 GB, free: 44.41 MB / 382.1 MB Notification: Performance of Templates: time 0.02227/0.6257, allocations: 14.65 MB / 0.5327 GB, free: 34.01 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.makefile (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) 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) Reference file matches