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.001105/0.001105, allocations: 117.2 kB / 17.78 MB, free: 5.281 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.001121/0.001121, allocations: 184.2 kB / 18.71 MB, free: 4.355 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.343/1.343, 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.2021/0.2021, allocations: 44.19 MB / 336.8 MB, free: 2.637 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002111/0.002111, allocations: 59.91 kB / 470 MB, free: 13.64 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3346/0.3367, allocations: 60.82 MB / 0.5184 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003078/0.3398, allocations: 2.4 MB / 0.5208 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001411/0.3412, allocations: 0.9362 MB / 0.5217 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001677/0.3414, allocations: 8.219 kB / 0.5217 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003434/0.3418, allocations: 123.6 kB / 0.5218 GB, free: 0.832 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002297/0.342, allocations: 105.8 kB / 0.5219 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006202/0.3427, allocations: 280.4 kB / 0.5222 GB, free: 0.625 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006779/0.3434, allocations: 0.7299 MB / 0.5229 GB, free: 324 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001545/0.3435, allocations: 68.59 kB / 0.523 GB, free: 292 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003479/0.3439, allocations: 310.1 kB / 0.5232 GB, free: 148 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004042/0.3443, allocations: 331.3 kB / 0.5236 GB, free: 4 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.586e-05/0.3444, allocations: 59.25 kB / 0.5236 GB, free: 4 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.338e-05/0.3445, allocations: 60.56 kB / 0.5237 GB, free: 4 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002447/0.3447, allocations: 186.7 kB / 0.5239 GB, free: 15.91 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002493/0.345, allocations: 243.5 kB / 0.5241 GB, free: 15.74 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007243/0.3457, allocations: 0.5619 MB / 0.5246 GB, free: 15.51 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.3457, allocations: 0.6562 kB / 0.5246 GB, free: 15.51 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3458, allocations: 0 / 0.5246 GB, free: 15.51 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.3458, allocations: 0 / 0.5246 GB, free: 15.51 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.002361/0.3481, allocations: 0.9611 MB / 0.5256 GB, free: 14.8 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.3482, allocations: 8.812 kB / 0.5256 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001121/0.3483, allocations: 87.22 kB / 0.5257 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.3484, allocations: 65.73 kB / 0.5257 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006397/0.3491, allocations: 390.9 kB / 0.5261 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003566/0.3495, allocations: 259 kB / 0.5263 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.3496, allocations: 42.5 kB / 0.5264 GB, free: 14.1 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002086/0.3517, allocations: 0.8129 MB / 0.5272 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.3517, allocations: 1.281 kB / 0.5272 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.615e-05/0.3518, allocations: 17.19 kB / 0.5272 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.3518, allocations: 10.25 kB / 0.5272 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003651/0.3554, allocations: 1.2 MB / 0.5284 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002884/0.3583, allocations: 2.032 MB / 0.5304 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003203/0.3616, allocations: 0.8262 MB / 0.5312 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001614/0.3632, allocations: 494.2 kB / 0.5316 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.84e-05/0.3633, allocations: 5.812 kB / 0.5317 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.3633, allocations: 43.31 kB / 0.5317 GB, free: 10.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.344e-06/0.3633, allocations: 0 / 0.5317 GB, free: 10.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.09246/0.4558, allocations: 15.79 MB / 0.5471 GB, free: 14.22 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.051e-05/0.4559, allocations: 94.17 kB / 0.5472 GB, free: 14.11 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005585/0.4565, allocations: 385.5 kB / 0.5476 GB, free: 13.72 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002425/0.4568, allocations: 45.7 kB / 0.5476 GB, free: 13.67 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001964/0.457, allocations: 221.6 kB / 0.5478 GB, free: 13.45 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005269/0.4575, allocations: 424.2 kB / 0.5482 GB, free: 13.04 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006768/0.4582, allocations: 194.9 kB / 0.5484 GB, free: 12.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.4584, allocations: 378.8 kB / 0.5488 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003936/0.4623, allocations: 1.338 MB / 0.5501 GB, free: 11.12 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004214/0.4666, allocations: 1.497 MB / 0.5516 GB, free: 9.578 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007284/0.4739, allocations: 2.445 MB / 0.5539 GB, free: 7.086 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/0.4739, allocations: 0 / 0.5539 GB, free: 7.086 MB / 414.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008417/0.4824, allocations: 2.834 MB / 0.5567 GB, free: 4.246 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.773e-05/0.4824, allocations: 12.02 kB / 0.5567 GB, free: 4.234 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/0.4824, allocations: 4 kB / 0.5567 GB, free: 4.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.568e-05/0.4825, allocations: 8 kB / 0.5567 GB, free: 4.223 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002985/0.4855, allocations: 407.4 kB / 0.5571 GB, free: 3.824 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.025e-05/0.4855, allocations: 11.94 kB / 0.5571 GB, free: 3.812 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002229/0.4878, allocations: 219.6 kB / 0.5573 GB, free: 3.598 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002143/0.488, allocations: 43.98 kB / 0.5574 GB, free: 3.555 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.0005964/0.4886, allocations: 234.8 kB / 0.5576 GB, free: 3.316 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003074/0.4889, allocations: 63.58 kB / 0.5577 GB, free: 3.254 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002717/0.4892, allocations: 108.7 kB / 0.5578 GB, free: 3.148 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.4892, allocations: 12 kB / 0.5578 GB, free: 3.137 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/0.4892, allocations: 7.938 kB / 0.5578 GB, free: 3.129 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.357e-05/0.4893, allocations: 11.95 kB / 0.5578 GB, free: 3.117 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01214/0.5014, allocations: 5.243 MB / 0.5629 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.201e-05/0.5015, allocations: 20 kB / 0.5629 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001607/0.5031, allocations: 355.7 kB / 0.5633 GB, free: 13.17 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.864e-05/0.5031, allocations: 28 kB / 0.5633 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001097/0.5032, allocations: 47.98 kB / 0.5634 GB, free: 13.09 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.641e-05/0.5033, allocations: 43.8 kB / 0.5634 GB, free: 13.05 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.047e-05/0.5033, allocations: 31.88 kB / 0.5634 GB, free: 13.02 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007589/0.5109, allocations: 3.087 MB / 0.5664 GB, free: 9.629 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004569/0.5114, allocations: 240.6 kB / 0.5667 GB, free: 9.375 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001659/0.5116, allocations: 51.98 kB / 0.5667 GB, free: 9.324 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001391/0.513, allocations: 191.8 kB / 0.5669 GB, free: 9.137 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004256/0.5134, allocations: 215.2 kB / 0.5671 GB, free: 8.926 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/0.5135, allocations: 56 kB / 0.5672 GB, free: 8.871 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003326/0.5138, allocations: 263.1 kB / 0.5674 GB, free: 8.613 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5139, allocations: 0 / 0.5674 GB, free: 8.613 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001077/0.5149, allocations: 232 kB / 0.5676 GB, free: 8.387 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.00794/0.5229, allocations: 3.698 MB / 0.5712 GB, free: 4.383 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006774/0.5297, allocations: 2.394 MB / 0.5736 GB, free: 1.988 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.323e-05/0.5297, allocations: 0 / 0.5736 GB, free: 1.988 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003545/0.5333, allocations: 1.067 MB / 0.5746 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001495/0.5348, allocations: 150.5 kB / 0.5748 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02887/0.5637, allocations: 12.38 MB / 0.5869 GB, free: 3.668 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006318/0.5643, allocations: 0.9243 MB / 0.5878 GB, free: 2.715 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001233/0.5656, allocations: 206.2 kB / 0.588 GB, free: 2.512 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008172/0.5664, allocations: 219.4 kB / 0.5882 GB, free: 2.297 MB / 446.1 MB Notification: Performance of SimCode: time 1.052e-06/0.5664, allocations: 0 / 0.5882 GB, free: 2.297 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04935/0.6158, allocations: 21.7 MB / 0.6094 GB, free: 12.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.128/9.744, allocations: 22.73 kB / 0.6094 GB, free: 12.68 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