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.001594/0.001594, allocations: 107.6 kB / 17.21 MB, free: 6.289 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.001781/0.001781, allocations: 194 kB / 18.12 MB, free: 5.383 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.397/1.397, allocations: 222.9 MB / 241.8 MB, free: 15.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2223/0.2223, allocations: 44.19 MB / 336.1 MB, free: 2.973 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 63.02 kB / 407.7 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1316, allocations: 60.84 MB / 468.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004183/0.1358, allocations: 2.434 MB / 471 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001774/0.1377, allocations: 0.9359 MB / 471.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002274/0.1379, allocations: 7.938 kB / 471.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003728/0.1383, allocations: 95.52 kB / 472 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002037/0.1385, allocations: 87.5 kB / 472.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000599/0.1391, allocations: 251.7 kB / 472.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000586/0.1397, allocations: 0.6782 MB / 473 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001557/0.1399, allocations: 77.03 kB / 473.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002649/0.1402, allocations: 263 kB / 473.3 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003339/0.1405, allocations: 322.7 kB / 473.6 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.184e-05/0.1406, allocations: 32 kB / 473.7 MB, free: 9.645 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.453e-05/0.1407, allocations: 36 kB / 473.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000169/0.1408, allocations: 167.5 kB / 473.9 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001922/0.141, allocations: 230.7 kB / 474.1 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004192/0.1415, allocations: 0.5102 MB / 474.6 MB, free: 8.707 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1415, allocations: 0 / 474.6 MB, free: 8.707 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.11e-07/0.1415, allocations: 0 / 474.6 MB, free: 8.707 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.1415, allocations: 0 / 474.6 MB, free: 8.707 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.002138/0.1436, allocations: 0.9315 MB / 475.5 MB, free: 7.727 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.1437, allocations: 16.03 kB / 475.6 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001169/0.1438, allocations: 64.28 kB / 475.6 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004448/0.1443, allocations: 375.2 kB / 476 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003285/0.1446, allocations: 263.6 kB / 476.2 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.109e-05/0.1447, allocations: 40.38 kB / 476.3 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001878/0.1466, allocations: 0.8165 MB / 477.1 MB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.1466, allocations: 7.906 kB / 477.1 MB, free: 6.043 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.787e-05/0.1467, allocations: 16 kB / 477.1 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.1467, allocations: 8 kB / 477.1 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003293/0.15, allocations: 1.208 MB / 478.3 MB, free: 4.812 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00263/0.1526, allocations: 2.05 MB / 480.4 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002728/0.1554, allocations: 0.8212 MB / 481.2 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001343/0.1567, allocations: 0.4896 MB / 481.7 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.702e-05/0.1568, allocations: 5.062 kB / 481.7 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.993e-05/0.1568, allocations: 50.42 kB / 481.8 MB, free: 1.277 MB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 2.936e-06/0.1569, allocations: 7.938 kB / 481.8 MB, free: 1.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.08615/0.243, allocations: 15.74 MB / 497.5 MB, free: 1.359 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.898e-05/0.2431, allocations: 90.23 kB / 497.6 MB, free: 1.254 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000474/0.2436, allocations: 397.4 kB / 498 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001387/0.2437, allocations: 41.7 kB / 498 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.2439, allocations: 221 kB / 498.2 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003509/0.2442, allocations: 406.1 kB / 498.6 MB, free: 192 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005604/0.2448, allocations: 198.9 kB / 498.8 MB, free: 15.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002983/0.2451, allocations: 370.8 kB / 499.2 MB, free: 15.61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003404/0.2485, allocations: 1.345 MB / 0.4888 GB, free: 14.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003546/0.2521, allocations: 1.493 MB / 0.4903 GB, free: 12.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006391/0.2585, allocations: 2.441 MB / 0.4926 GB, free: 10.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.2585, allocations: 0 / 0.4926 GB, free: 10.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.009511/0.268, allocations: 2.834 MB / 0.4954 GB, free: 7.398 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.59e-05/0.2681, allocations: 8 kB / 0.4954 GB, free: 7.391 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.235e-05/0.2682, allocations: 4 kB / 0.4954 GB, free: 7.387 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.983e-05/0.2682, allocations: 8 kB / 0.4954 GB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004008/0.2722, allocations: 411.6 kB / 0.4958 GB, free: 6.977 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.616e-05/0.2723, allocations: 11.94 kB / 0.4958 GB, free: 6.965 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00286/0.2751, allocations: 215.7 kB / 0.496 GB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002426/0.2754, allocations: 39.98 kB / 0.4961 GB, free: 6.715 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.noWphase,kinematicPTP2b.moving[1],kinematicPTP1a.noWphase,kinematicPTP1b.noWphase,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 (148): * Single equations (assignments): 148 * 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.000774/0.2762, allocations: 233.5 kB / 0.4963 GB, free: 6.477 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003863/0.2766, allocations: 67.25 kB / 0.4964 GB, free: 6.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003698/0.277, allocations: 112.7 kB / 0.4965 GB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-05/0.277, allocations: 12 kB / 0.4965 GB, free: 6.285 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.5e-05/0.277, allocations: 3.938 kB / 0.4965 GB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.622e-05/0.2771, allocations: 7.969 kB / 0.4965 GB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01386/0.2909, allocations: 5.227 MB / 0.5016 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.995e-05/0.291, allocations: 20 kB / 0.5016 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001424/0.2924, allocations: 352.3 kB / 0.502 GB, free: 352 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.469e-05/0.2924, allocations: 28 kB / 0.502 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.044e-05/0.2925, allocations: 51.98 kB / 0.502 GB, free: 272 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-05/0.2926, allocations: 43.73 kB / 0.5021 GB, free: 228 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-05/0.2926, allocations: 35.88 kB / 0.5021 GB, free: 192 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2381/0.5307, allocations: 3.086 MB / 0.5051 GB, free: 49.72 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004685/0.5312, allocations: 238.5 kB / 0.5053 GB, free: 49.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001394/0.5313, allocations: 51.66 kB / 0.5054 GB, free: 49.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001303/0.5327, allocations: 191.7 kB / 0.5056 GB, free: 49.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004853/0.5332, allocations: 216.3 kB / 0.5058 GB, free: 49.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/0.5333, allocations: 59.55 kB / 0.5058 GB, free: 49.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000328/0.5336, allocations: 264.2 kB / 0.5061 GB, free: 49.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.694e-06/0.5336, allocations: 0 / 0.5061 GB, free: 49.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001111/0.5347, allocations: 234.8 kB / 0.5063 GB, free: 49.52 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 (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.0002472/0.535, allocations: 167.8 kB / 0.5065 GB, free: 49.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00631/0.5413, allocations: 2.34 MB / 0.5088 GB, free: 48.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.499e-05/0.5414, allocations: 2.281 kB / 0.5088 GB, free: 48.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003506/0.5449, allocations: 1.065 MB / 0.5098 GB, free: 48.28 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001933/0.5468, allocations: 156 kB / 0.51 GB, free: 48.22 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003664/0.5505, allocations: 2.195 MB / 0.5121 GB, free: 46.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000532/0.5511, allocations: 0.9297 MB / 0.513 GB, free: 45.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001402/0.5525, allocations: 196.2 kB / 0.5132 GB, free: 45.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006402/0.5531, allocations: 64.03 kB / 0.5133 GB, free: 45.72 MB / 382.1 MB Notification: Performance of SimCode: time 9.72e-07/0.5531, allocations: 0.6562 kB / 0.5133 GB, free: 45.72 MB / 382.1 MB Notification: Performance of Templates: time 0.02347/0.5766, allocations: 15.25 MB / 0.5281 GB, free: 37.29 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