Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 183 kB / 16.63 MB, free: 5.137 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.249/1.249, allocations: 205.1 MB / 222.5 MB, free: 8.484 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009962/0.0009962, allocations: 104.8 kB / 269.9 MB, free: 8.441 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3159/0.3159, allocations: 43.5 MB / 360.7 MB, free: 51.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001038/0.001038, allocations: 51.92 kB / 429.2 MB, free: 6.402 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1157, allocations: 57.77 MB / 487 MB, free: 12.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003509/0.1193, allocations: 2.441 MB / 489.4 MB, free: 10.09 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001464/0.1208, allocations: 0.9833 MB / 490.4 MB, free: 9.102 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001551/0.1209, allocations: 11.88 kB / 490.4 MB, free: 9.09 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003435/0.1213, allocations: 103.5 kB / 490.5 MB, free: 8.988 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001882/0.1215, allocations: 79.58 kB / 490.6 MB, free: 8.91 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005094/0.122, allocations: 251.6 kB / 490.9 MB, free: 8.664 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005726/0.1226, allocations: 0.6822 MB / 491.5 MB, free: 7.98 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001643/0.1228, allocations: 77.3 kB / 491.6 MB, free: 7.902 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002786/0.123, allocations: 267 kB / 491.9 MB, free: 7.641 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003336/0.1234, allocations: 334.6 kB / 492.2 MB, free: 7.312 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.349e-05/0.1235, allocations: 32 kB / 492.2 MB, free: 7.281 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.796e-05/0.1235, allocations: 32 kB / 492.3 MB, free: 7.25 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001654/0.1237, allocations: 159.5 kB / 492.4 MB, free: 7.094 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001918/0.1239, allocations: 222.7 kB / 492.6 MB, free: 6.875 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000431/0.1243, allocations: 0.5139 MB / 493.2 MB, free: 6.359 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1244, allocations: 0 / 493.2 MB, free: 6.359 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1244, allocations: 3.938 kB / 493.2 MB, free: 6.355 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.872e-06/0.1244, allocations: 0 / 493.2 MB, free: 6.355 MB / 378.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.002187/0.1266, allocations: 0.9431 MB / 494.1 MB, free: 5.363 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.1266, allocations: 8.031 kB / 494.1 MB, free: 5.355 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000122/0.1267, allocations: 64.38 kB / 494.2 MB, free: 5.293 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004907/0.1272, allocations: 371.1 kB / 494.5 MB, free: 4.891 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003343/0.1276, allocations: 267.7 kB / 494.8 MB, free: 4.594 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.347e-05/0.1277, allocations: 44.38 kB / 494.8 MB, free: 4.551 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001941/0.1296, allocations: 0.8048 MB / 495.6 MB, free: 3.703 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.136e-05/0.1297, allocations: 7.938 kB / 495.7 MB, free: 3.695 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.453e-05/0.1297, allocations: 19.98 kB / 495.7 MB, free: 3.676 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.1297, allocations: 12 kB / 495.7 MB, free: 3.664 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003436/0.1332, allocations: 1.196 MB / 496.9 MB, free: 2.469 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002578/0.1358, allocations: 2.046 MB / 498.9 MB, free: 344 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002934/0.1387, allocations: 0.8359 MB / 499.8 MB, free: 15.48 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001415/0.1401, allocations: 494.4 kB / 0.4885 GB, free: 15 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.907e-05/0.1402, allocations: 11.98 kB / 0.4885 GB, free: 14.98 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.194e-05/0.1403, allocations: 38.5 kB / 0.4886 GB, free: 14.94 MB / 394.7 MB Notification: Performance of pre-optimization done (n=64): time 1.834e-06/0.1403, allocations: 4 kB / 0.4886 GB, free: 14.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=120): time 0.3016/0.4419, allocations: 15.74 MB / 0.5039 GB, free: 61.75 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.019e-05/0.442, allocations: 91 kB / 0.504 GB, free: 61.66 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005527/0.4426, allocations: 391.9 kB / 0.5044 GB, free: 61.55 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001563/0.4427, allocations: 44.14 kB / 0.5045 GB, free: 61.52 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.4429, allocations: 222.6 kB / 0.5047 GB, free: 61.43 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003262/0.4432, allocations: 403 kB / 0.505 GB, free: 61.21 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005507/0.4438, allocations: 199.3 kB / 0.5052 GB, free: 61.14 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.4439, allocations: 373.3 kB / 0.5056 GB, free: 60.8 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003786/0.4477, allocations: 1.341 MB / 0.5069 GB, free: 60.3 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003747/0.4514, allocations: 1.494 MB / 0.5084 GB, free: 59.67 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006631/0.4581, allocations: 2.449 MB / 0.5108 GB, free: 58.67 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.4581, allocations: 0 / 0.5108 GB, free: 58.67 MB / 394.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007168/0.4653, allocations: 2.83 MB / 0.5135 GB, free: 57.61 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.4653, allocations: 6.312 kB / 0.5135 GB, free: 57.61 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.4653, allocations: 6.281 kB / 0.5135 GB, free: 57.61 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.48e-05/0.4654, allocations: 7.688 kB / 0.5135 GB, free: 57.61 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00252/0.4679, allocations: 408.2 kB / 0.5139 GB, free: 57.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.489e-05/0.4679, allocations: 14.69 kB / 0.5139 GB, free: 57.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001952/0.4699, allocations: 220.1 kB / 0.5142 GB, free: 57.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001584/0.4701, allocations: 44.73 kB / 0.5142 GB, free: 57.56 MB / 394.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: 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.0004188/0.4705, allocations: 226.2 kB / 0.5144 GB, free: 57.39 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002351/0.4707, allocations: 61.28 kB / 0.5145 GB, free: 57.36 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002898/0.471, allocations: 114.7 kB / 0.5146 GB, free: 57.27 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.8e-05/0.471, allocations: 15.88 kB / 0.5146 GB, free: 57.26 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.235e-05/0.4711, allocations: 1.219 kB / 0.5146 GB, free: 57.26 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.648e-05/0.4711, allocations: 7.906 kB / 0.5146 GB, free: 57.26 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01035/0.4815, allocations: 5.228 MB / 0.5197 GB, free: 54.76 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.842e-05/0.4815, allocations: 19.31 kB / 0.5197 GB, free: 54.76 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001359/0.4829, allocations: 359.2 kB / 0.5201 GB, free: 54.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-05/0.4829, allocations: 29.28 kB / 0.5201 GB, free: 54.73 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.931e-05/0.483, allocations: 43.12 kB / 0.5201 GB, free: 54.71 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.343e-05/0.483, allocations: 46.83 kB / 0.5202 GB, free: 54.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.481e-05/0.4831, allocations: 32.56 kB / 0.5202 GB, free: 54.69 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01142/0.4945, allocations: 5.633 MB / 0.5257 GB, free: 51.48 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003613/0.4949, allocations: 240.5 kB / 0.5259 GB, free: 51.31 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.86e-05/0.495, allocations: 53.36 kB / 0.526 GB, free: 51.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001311/0.4963, allocations: 190.2 kB / 0.5262 GB, free: 51.27 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004034/0.4967, allocations: 215.1 kB / 0.5264 GB, free: 51.19 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.043e-05/0.4968, allocations: 56.86 kB / 0.5264 GB, free: 51.18 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002594/0.4971, allocations: 263.8 kB / 0.5267 GB, free: 51.05 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4971, allocations: 4 kB / 0.5267 GB, free: 51.05 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001072/0.4981, allocations: 244.6 kB / 0.5269 GB, free: 51.02 MB / 394.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: 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.0002101/0.4984, allocations: 172.9 kB / 0.5271 GB, free: 50.88 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005827/0.5042, allocations: 2.345 MB / 0.5294 GB, free: 50.04 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.457e-06/0.5042, allocations: 2.844 kB / 0.5294 GB, free: 50.04 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003052/0.5073, allocations: 1.075 MB / 0.5304 GB, free: 49.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001193/0.5085, allocations: 156.1 kB / 0.5306 GB, free: 49.65 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003743/0.5122, allocations: 2.764 MB / 0.5333 GB, free: 47.52 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000422/0.5127, allocations: 0.9585 MB / 0.5342 GB, free: 46.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001242/0.5139, allocations: 195.2 kB / 0.5344 GB, free: 46.72 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005635/0.5145, allocations: 64.45 kB / 0.5345 GB, free: 46.71 MB / 394.7 MB Notification: Performance of SimCode: time 4.41e-07/0.5145, allocations: 0 / 0.5345 GB, free: 46.71 MB / 394.7 MB Notification: Performance of Templates: time 0.0272/0.5417, allocations: 16.09 MB / 0.5502 GB, free: 42.42 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches