Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001056/0.001056, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001202/0.001202, allocations: 200.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 246.9 MB, free: 10.58 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2276/0.2276, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 75.88 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.369/0.3706, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003754/0.3744, allocations: 2.416 MB / 0.5329 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001858/0.3763, allocations: 0.9783 MB / 0.5338 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003021/0.3766, allocations: 9.438 kB / 0.5338 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004085/0.377, allocations: 114.9 kB / 0.5339 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003047/0.3773, allocations: 97.19 kB / 0.534 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007162/0.3781, allocations: 292.8 kB / 0.5343 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008761/0.3789, allocations: 0.7129 MB / 0.535 GB, free: 9.867 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001755/0.3791, allocations: 72.17 kB / 0.5351 GB, free: 9.828 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005275/0.3797, allocations: 302.3 kB / 0.5354 GB, free: 9.641 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004893/0.3802, allocations: 328.1 kB / 0.5357 GB, free: 9.406 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.768e-05/0.3803, allocations: 60.66 kB / 0.5357 GB, free: 9.406 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.901e-05/0.3804, allocations: 64.5 kB / 0.5358 GB, free: 9.402 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000192/0.3806, allocations: 187.9 kB / 0.536 GB, free: 9.258 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002387/0.3808, allocations: 239.6 kB / 0.5362 GB, free: 9.062 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005535/0.3814, allocations: 0.5592 MB / 0.5368 GB, free: 8.637 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3814, allocations: 0 / 0.5368 GB, free: 8.637 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3814, allocations: 0 / 0.5368 GB, free: 8.637 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.817e-06/0.3814, allocations: 1.094 kB / 0.5368 GB, free: 8.637 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.002329/0.3837, allocations: 0.9497 MB / 0.5377 GB, free: 7.906 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.3838, allocations: 14.41 kB / 0.5377 GB, free: 7.902 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001001/0.3839, allocations: 89.23 kB / 0.5378 GB, free: 7.82 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.384, allocations: 65.98 kB / 0.5378 GB, free: 7.793 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006728/0.3847, allocations: 378.8 kB / 0.5382 GB, free: 7.457 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003942/0.3851, allocations: 271.2 kB / 0.5385 GB, free: 7.219 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.993e-05/0.3852, allocations: 39.88 kB / 0.5385 GB, free: 7.207 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001973/0.3872, allocations: 0.8158 MB / 0.5393 GB, free: 6.676 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.204e-05/0.3872, allocations: 1.094 kB / 0.5393 GB, free: 6.676 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.667e-05/0.3873, allocations: 16.59 kB / 0.5393 GB, free: 6.664 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.3873, allocations: 10 kB / 0.5393 GB, free: 6.664 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003453/0.3908, allocations: 1.202 MB / 0.5405 GB, free: 6.121 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003293/0.3941, allocations: 2.027 MB / 0.5425 GB, free: 4.383 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002929/0.3971, allocations: 0.8264 MB / 0.5433 GB, free: 3.969 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00165/0.3987, allocations: 495.2 kB / 0.5438 GB, free: 3.719 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.814e-05/0.3989, allocations: 10.22 kB / 0.5438 GB, free: 3.715 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.955e-05/0.3989, allocations: 46.42 kB / 0.5438 GB, free: 3.664 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.695e-06/0.3989, allocations: 0 / 0.5438 GB, free: 3.664 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.08381/0.4827, allocations: 15.77 MB / 0.5592 GB, free: 3.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.927e-05/0.4829, allocations: 94.17 kB / 0.5593 GB, free: 3.797 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006028/0.4835, allocations: 393.5 kB / 0.5597 GB, free: 3.398 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002134/0.4837, allocations: 45.7 kB / 0.5597 GB, free: 3.348 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002007/0.4839, allocations: 225.5 kB / 0.5599 GB, free: 3.121 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005277/0.4844, allocations: 416.5 kB / 0.5603 GB, free: 2.711 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006177/0.4851, allocations: 194.9 kB / 0.5605 GB, free: 2.512 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.4853, allocations: 374.8 kB / 0.5609 GB, free: 2.137 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003394/0.4887, allocations: 1.342 MB / 0.5622 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00357/0.4923, allocations: 1.501 MB / 0.5637 GB, free: 15.25 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006212/0.4985, allocations: 2.445 MB / 0.566 GB, free: 12.76 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.077e-05/0.4985, allocations: 8 kB / 0.566 GB, free: 12.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.00728/0.5058, allocations: 2.83 MB / 0.5688 GB, free: 9.914 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.5059, allocations: 4 kB / 0.5688 GB, free: 9.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.5059, allocations: 4 kB / 0.5688 GB, free: 9.906 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.495e-05/0.5059, allocations: 11.94 kB / 0.5688 GB, free: 9.895 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002672/0.5086, allocations: 407.7 kB / 0.5692 GB, free: 9.496 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.373e-05/0.5086, allocations: 15.88 kB / 0.5692 GB, free: 9.48 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001942/0.5106, allocations: 215.7 kB / 0.5694 GB, free: 9.27 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000199/0.5108, allocations: 47.92 kB / 0.5695 GB, free: 9.223 MB / 430.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.000512/0.5113, allocations: 238.8 kB / 0.5697 GB, free: 8.98 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000244/0.5116, allocations: 59.62 kB / 0.5698 GB, free: 8.922 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002589/0.5118, allocations: 108.7 kB / 0.5699 GB, free: 8.816 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-05/0.5119, allocations: 12 kB / 0.5699 GB, free: 8.805 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.5119, allocations: 3.938 kB / 0.5699 GB, free: 8.801 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.5119, allocations: 7.969 kB / 0.5699 GB, free: 8.793 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01116/0.5231, allocations: 5.231 MB / 0.575 GB, free: 3.223 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.1e-05/0.5232, allocations: 20.19 kB / 0.575 GB, free: 3.203 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001591/0.5248, allocations: 351.4 kB / 0.5754 GB, free: 2.859 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.293e-05/0.5248, allocations: 28 kB / 0.5754 GB, free: 2.832 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001691/0.525, allocations: 52 kB / 0.5754 GB, free: 2.781 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.896e-05/0.5251, allocations: 43.84 kB / 0.5755 GB, free: 2.738 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.317e-05/0.5251, allocations: 31.81 kB / 0.5755 GB, free: 2.707 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007232/0.5323, allocations: 3.091 MB / 0.5785 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006147/0.533, allocations: 240.6 kB / 0.5788 GB, free: 15.06 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001974/0.5332, allocations: 51.98 kB / 0.5788 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001461/0.5347, allocations: 187.8 kB / 0.579 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004776/0.5352, allocations: 223.2 kB / 0.5792 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001225/0.5353, allocations: 56 kB / 0.5793 GB, free: 14.55 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003423/0.5357, allocations: 263.1 kB / 0.5795 GB, free: 14.29 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5357, allocations: 0 / 0.5795 GB, free: 14.29 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001141/0.5368, allocations: 232 kB / 0.5797 GB, free: 14.07 MB / 446.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.007976/0.5448, allocations: 3.69 MB / 0.5833 GB, free: 10.07 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006475/0.5514, allocations: 2.387 MB / 0.5857 GB, free: 7.684 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.747e-05/0.5514, allocations: 4 kB / 0.5857 GB, free: 7.68 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003406/0.5548, allocations: 1.071 MB / 0.5867 GB, free: 6.613 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00151/0.5564, allocations: 155.9 kB / 0.5869 GB, free: 6.469 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02576/0.5821, allocations: 12.38 MB / 0.599 GB, free: 9.34 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000713/0.5829, allocations: 0.9281 MB / 0.5999 GB, free: 8.383 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001126/0.584, allocations: 206 kB / 0.6001 GB, free: 8.18 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007807/0.5848, allocations: 215.4 kB / 0.6003 GB, free: 7.969 MB / 462.1 MB Notification: Performance of SimCode: time 7.01e-07/0.5849, allocations: 4 kB / 0.6003 GB, free: 7.965 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05316/0.638, allocations: 21.58 MB / 0.6213 GB, free: 2.449 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.995/9.633, allocations: 22.89 kB / 0.6214 GB, free: 2.434 MB / 478.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches