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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001474/0.001474, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 221.5 MB / 230.7 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009504/0.0009095, allocations: 92.36 kB / 281.6 MB, free: 5.316 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2022/0.2022, allocations: 44.15 MB / 376.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.25e-05/1.252e-05, allocations: 224 / 444.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1313, allocations: 61.92 MB / 0.4947 GB, free: 1.258 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4015/0.5329, allocations: 88.51 MB / 0.5811 GB, free: 7.988 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001799/0.5331, allocations: 63.97 kB / 0.5812 GB, free: 7.926 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03362/0.5667, allocations: 11.78 MB / 0.5927 GB, free: 12.12 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.5668, allocations: 4 kB / 0.5927 GB, free: 12.12 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.238e-05/0.5668, allocations: 8 kB / 0.5927 GB, free: 12.11 MB / 410.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.001976/0.5688, allocations: 0.8999 MB / 0.5936 GB, free: 11.17 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.5688, allocations: 11.98 kB / 0.5936 GB, free: 11.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.5689, allocations: 75.3 kB / 0.5936 GB, free: 11.08 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005028/0.5695, allocations: 354.8 kB / 0.594 GB, free: 10.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003427/0.5698, allocations: 263.4 kB / 0.5942 GB, free: 10.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.059e-05/0.5699, allocations: 27.91 kB / 0.5943 GB, free: 10.38 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001233/0.5712, allocations: 0.803 MB / 0.595 GB, free: 9.57 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008541/0.572, allocations: 0.5643 MB / 0.5956 GB, free: 8.965 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.821e-05/0.572, allocations: 0 / 0.5956 GB, free: 8.965 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.074e-05/0.5721, allocations: 4 kB / 0.5956 GB, free: 8.961 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.5721, allocations: 12 kB / 0.5956 GB, free: 8.949 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002544/0.5747, allocations: 2.007 MB / 0.5976 GB, free: 6.867 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.576, allocations: 0.5687 MB / 0.5981 GB, free: 6.277 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004109/0.5764, allocations: 290.8 kB / 0.5984 GB, free: 5.988 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.53e-05/0.5765, allocations: 12.5 kB / 0.5984 GB, free: 5.977 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.5765, allocations: 47.12 kB / 0.5985 GB, free: 5.922 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 1.944e-06/0.5765, allocations: 0 / 0.5985 GB, free: 5.922 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.0186/0.5951, allocations: 7.104 MB / 0.6054 GB, free: 14.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.998e-05/0.5952, allocations: 98.23 kB / 0.6055 GB, free: 14.54 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003883/0.5956, allocations: 346.2 kB / 0.6058 GB, free: 14.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001285/0.5958, allocations: 25.7 kB / 0.6058 GB, free: 14.16 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.5959, allocations: 217.1 kB / 0.6061 GB, free: 13.95 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003255/0.5962, allocations: 386.1 kB / 0.6064 GB, free: 13.56 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/0.5964, allocations: 0 / 0.6064 GB, free: 13.56 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.5965, allocations: 378.7 kB / 0.6068 GB, free: 13.18 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001297/0.5978, allocations: 0.9478 MB / 0.6077 GB, free: 12.23 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001416/0.5992, allocations: 1.093 MB / 0.6088 GB, free: 11.1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001119/0.6004, allocations: 0.8008 MB / 0.6096 GB, free: 10.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.6004, allocations: 0 / 0.6096 GB, free: 10.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.002963/0.6033, allocations: 1.996 MB / 0.6115 GB, free: 8.297 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.6034, allocations: 8 kB / 0.6115 GB, free: 8.289 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.6034, allocations: 0 / 0.6115 GB, free: 8.289 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.44e-05/0.6034, allocations: 12 kB / 0.6115 GB, free: 8.277 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002735/0.6062, allocations: 463.5 kB / 0.612 GB, free: 7.824 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.852e-05/0.6062, allocations: 15.94 kB / 0.612 GB, free: 7.809 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002018/0.6082, allocations: 255.7 kB / 0.6122 GB, free: 7.559 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000144/0.6084, allocations: 39.98 kB / 0.6123 GB, free: 7.52 MB / 426.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.moving[1],kinematicPTP2b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,kinematicPTP1b.noWphase,integrator3.local_reset,integrator2.local_reset,integrator1.local_reset,integrator.local_reset) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003638/0.6087, allocations: 144.4 kB / 0.6124 GB, free: 7.371 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002029/0.609, allocations: 63.19 kB / 0.6125 GB, free: 7.309 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002696/0.6092, allocations: 97.03 kB / 0.6126 GB, free: 7.211 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.968e-06/0.6092, allocations: 12 kB / 0.6126 GB, free: 7.199 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/0.6093, allocations: 0 / 0.6126 GB, free: 7.199 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.6093, allocations: 3.984 kB / 0.6126 GB, free: 7.195 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007899/0.6172, allocations: 4.567 MB / 0.617 GB, free: 2.297 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.867e-05/0.6172, allocations: 20 kB / 0.6171 GB, free: 2.277 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001539/0.6188, allocations: 416.2 kB / 0.6174 GB, free: 1.871 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-05/0.6188, allocations: 32 kB / 0.6175 GB, free: 1.84 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.587e-05/0.6189, allocations: 24 kB / 0.6175 GB, free: 1.816 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.626e-05/0.6189, allocations: 43.8 kB / 0.6175 GB, free: 1.773 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.895e-05/0.619, allocations: 31.88 kB / 0.6176 GB, free: 1.742 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003129/0.6221, allocations: 3.241 MB / 0.6207 GB, free: 13.64 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003386/0.6224, allocations: 248.2 kB / 0.621 GB, free: 13.38 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001189/0.6226, allocations: 35.98 kB / 0.621 GB, free: 13.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001392/0.624, allocations: 231.8 kB / 0.6212 GB, free: 13.11 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004021/0.6244, allocations: 239.2 kB / 0.6215 GB, free: 12.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.401e-05/0.6245, allocations: 56 kB / 0.6215 GB, free: 12.82 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002964/0.6248, allocations: 264.5 kB / 0.6218 GB, free: 12.57 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6248, allocations: 0 / 0.6218 GB, free: 12.57 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0009861/0.6258, allocations: 200 kB / 0.622 GB, free: 12.37 MB / 442.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 () * 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 (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.0002309/0.626, allocations: 154.6 kB / 0.6221 GB, free: 12.21 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002339/0.6284, allocations: 1.612 MB / 0.6237 GB, free: 10.6 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.6284, allocations: 4 kB / 0.6237 GB, free: 10.59 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001614/0.63, allocations: 0.7392 MB / 0.6244 GB, free: 9.859 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007748/0.6308, allocations: 112.2 kB / 0.6245 GB, free: 9.754 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002857/0.6337, allocations: 1.627 MB / 0.6261 GB, free: 7.812 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005724/0.6342, allocations: 0.9402 MB / 0.627 GB, free: 6.836 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001283/0.6355, allocations: 194 kB / 0.6272 GB, free: 6.645 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000537/0.6361, allocations: 63.42 kB / 0.6273 GB, free: 6.582 MB / 442.7 MB Notification: Performance of SimCode: time 9.82e-07/0.6361, allocations: 0 / 0.6273 GB, free: 6.582 MB / 442.7 MB Notification: Performance of Templates: time 0.02246/0.6585, allocations: 14.46 MB / 0.6414 GB, free: 8.148 MB / 458.7 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","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches