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: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001765/0.001765, allocations: 118.4 kB / 17.79 MB, free: 5.254 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.001874/0.001874, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.37/1.37, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.219/0.219, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 63.91 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3229/0.3247, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003002/0.3277, allocations: 2.408 MB / 0.5208 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.3291, allocations: 0.9353 MB / 0.5217 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000155/0.3293, allocations: 12.75 kB / 0.5217 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003369/0.3296, allocations: 116.2 kB / 0.5218 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000203/0.3298, allocations: 96.98 kB / 0.5219 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005878/0.3304, allocations: 292.3 kB / 0.5222 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007181/0.3312, allocations: 0.7233 MB / 0.5229 GB, free: 340 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001653/0.3313, allocations: 68.7 kB / 0.5229 GB, free: 308 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003186/0.3317, allocations: 297.9 kB / 0.5232 GB, free: 176 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004178/0.3321, allocations: 333.6 kB / 0.5235 GB, free: 28 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001143/0.3322, allocations: 60.75 kB / 0.5236 GB, free: 28 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000103/0.3323, allocations: 64 kB / 0.5237 GB, free: 24 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002664/0.3326, allocations: 191.8 kB / 0.5239 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002672/0.3329, allocations: 238.8 kB / 0.5241 GB, free: 15.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007463/0.3336, allocations: 0.5663 MB / 0.5246 GB, free: 15.53 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3336, allocations: 4 kB / 0.5246 GB, free: 15.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3336, allocations: 0.8438 kB / 0.5246 GB, free: 15.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.335e-05/0.3337, allocations: 0 / 0.5246 GB, free: 15.52 MB / 398.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.00245/0.3361, allocations: 0.9461 MB / 0.5256 GB, free: 14.85 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.3362, allocations: 9.844 kB / 0.5256 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001461/0.3363, allocations: 94.8 kB / 0.5257 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001361/0.3365, allocations: 65.77 kB / 0.5257 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006213/0.3371, allocations: 387.7 kB / 0.5261 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003837/0.3375, allocations: 263.2 kB / 0.5263 GB, free: 14.15 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.028e-05/0.3376, allocations: 42.88 kB / 0.5264 GB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002097/0.3397, allocations: 0.8085 MB / 0.5272 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/0.3398, allocations: 5.312 kB / 0.5272 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.765e-05/0.3398, allocations: 16.12 kB / 0.5272 GB, free: 13.6 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.3398, allocations: 13.62 kB / 0.5272 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003634/0.3435, allocations: 1.201 MB / 0.5284 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002919/0.3464, allocations: 2.024 MB / 0.5304 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003145/0.3496, allocations: 0.8223 MB / 0.5312 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00158/0.3512, allocations: 0.4904 MB / 0.5316 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.257e-05/0.3513, allocations: 6.062 kB / 0.5316 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.408e-05/0.3513, allocations: 43.5 kB / 0.5317 GB, free: 10.6 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.424e-06/0.3513, allocations: 4 kB / 0.5317 GB, free: 10.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.09055/0.4419, allocations: 15.78 MB / 0.5471 GB, free: 14.29 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.623e-05/0.442, allocations: 98.16 kB / 0.5472 GB, free: 14.17 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005174/0.4425, allocations: 389.5 kB / 0.5476 GB, free: 13.78 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001773/0.4427, allocations: 45.7 kB / 0.5476 GB, free: 13.73 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001823/0.4429, allocations: 213.6 kB / 0.5478 GB, free: 13.51 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004195/0.4433, allocations: 432.2 kB / 0.5482 GB, free: 13.09 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005825/0.4439, allocations: 198.9 kB / 0.5484 GB, free: 12.89 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002101/0.4441, allocations: 370.8 kB / 0.5488 GB, free: 12.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003855/0.448, allocations: 1.342 MB / 0.5501 GB, free: 11.18 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004167/0.4522, allocations: 1.493 MB / 0.5515 GB, free: 9.637 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009717/0.4619, allocations: 2.441 MB / 0.5539 GB, free: 7.148 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.295e-06/0.462, allocations: 0 / 0.5539 GB, free: 7.148 MB / 414.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.01178/0.4738, allocations: 2.838 MB / 0.5567 GB, free: 4.305 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.261e-05/0.4739, allocations: 10.81 kB / 0.5567 GB, free: 4.297 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.678e-05/0.4739, allocations: 4 kB / 0.5567 GB, free: 4.293 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.104e-05/0.4739, allocations: 8 kB / 0.5567 GB, free: 4.285 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002892/0.4768, allocations: 415.5 kB / 0.5571 GB, free: 3.879 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.045e-05/0.4768, allocations: 11.94 kB / 0.5571 GB, free: 3.867 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00204/0.4789, allocations: 219.7 kB / 0.5573 GB, free: 3.652 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001605/0.4791, allocations: 43.88 kB / 0.5574 GB, free: 3.609 MB / 414.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.000498/0.4796, allocations: 223 kB / 0.5576 GB, free: 3.383 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000216/0.4798, allocations: 71.58 kB / 0.5577 GB, free: 3.312 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000277/0.4801, allocations: 116.7 kB / 0.5578 GB, free: 3.199 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/0.4801, allocations: 12 kB / 0.5578 GB, free: 3.188 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.475e-05/0.4801, allocations: 3.938 kB / 0.5578 GB, free: 3.184 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.4801, allocations: 7.922 kB / 0.5578 GB, free: 3.176 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01775/0.4979, allocations: 5.247 MB / 0.5629 GB, free: 13.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.976e-05/0.498, allocations: 20 kB / 0.5629 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002286/0.5003, allocations: 356.1 kB / 0.5633 GB, free: 13.22 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.061e-05/0.5003, allocations: 28 kB / 0.5633 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000137/0.5005, allocations: 44 kB / 0.5633 GB, free: 13.15 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.577e-05/0.5005, allocations: 39.86 kB / 0.5634 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.928e-05/0.5006, allocations: 31.88 kB / 0.5634 GB, free: 13.08 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008993/0.5096, allocations: 3.087 MB / 0.5664 GB, free: 9.691 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004473/0.51, allocations: 244.6 kB / 0.5667 GB, free: 9.434 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000138/0.5102, allocations: 51.98 kB / 0.5667 GB, free: 9.383 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001347/0.5115, allocations: 187.8 kB / 0.5669 GB, free: 9.199 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004605/0.512, allocations: 215.2 kB / 0.5671 GB, free: 8.988 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/0.5121, allocations: 59.98 kB / 0.5671 GB, free: 8.93 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003451/0.5125, allocations: 267.2 kB / 0.5674 GB, free: 8.668 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5125, allocations: 0 / 0.5674 GB, free: 8.668 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009986/0.5135, allocations: 232 kB / 0.5676 GB, free: 8.441 MB / 430.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.00833/0.5218, allocations: 3.698 MB / 0.5712 GB, free: 4.438 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0071/0.529, allocations: 2.383 MB / 0.5736 GB, free: 2.055 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-05/0.529, allocations: 4 kB / 0.5736 GB, free: 2.051 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003727/0.5327, allocations: 1.071 MB / 0.5746 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001337/0.5341, allocations: 163.1 kB / 0.5748 GB, free: 0.832 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02922/0.5633, allocations: 12.36 MB / 0.5868 GB, free: 3.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006846/0.5641, allocations: 0.9321 MB / 0.5877 GB, free: 2.77 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001073/0.5651, allocations: 206.2 kB / 0.5879 GB, free: 2.566 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007361/0.5659, allocations: 219.4 kB / 0.5882 GB, free: 2.352 MB / 446.1 MB Notification: Performance of SimCode: time 4.81e-07/0.5659, allocations: 0 / 0.5882 GB, free: 2.352 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05226/0.6181, allocations: 21.71 MB / 0.6094 GB, free: 12.75 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.388/10.01, allocations: 9.125 kB / 0.6094 GB, free: 12.74 MB / 478.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches