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.001096/0.001096, allocations: 102.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001168/0.001168, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2219/0.2219, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 79.66 kB / 417.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1168, allocations: 62.44 MB / 480.1 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004887/0.1217, allocations: 2.418 MB / 482.5 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002499/0.1242, allocations: 0.9708 MB / 483.5 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005429/0.1248, allocations: 7.938 kB / 483.5 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006805/0.1255, allocations: 123.2 kB / 483.6 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005691/0.1262, allocations: 99.33 kB / 483.7 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00117/0.1274, allocations: 275.6 kB / 484 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00115/0.1285, allocations: 0.7173 MB / 484.7 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002268/0.1288, allocations: 65.33 kB / 484.8 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000699/0.1295, allocations: 299 kB / 485.1 MB, free: 236 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007392/0.1302, allocations: 330.8 kB / 485.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002725/0.1305, allocations: 60 kB / 485.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002147/0.1307, allocations: 60 kB / 485.5 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002897/0.131, allocations: 191.5 kB / 485.7 MB, free: 15.6 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003082/0.1314, allocations: 230.8 kB / 485.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006253/0.132, allocations: 0.549 MB / 486.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.132, allocations: 0 / 486.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.132, allocations: 0 / 486.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.17e-05/0.132, allocations: 0 / 486.5 MB, free: 14.82 MB / 366.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.002579/0.1346, allocations: 0.9353 MB / 487.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.361e-05/0.1347, allocations: 8.031 kB / 487.4 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001291/0.1348, allocations: 94.7 kB / 487.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001497/0.135, allocations: 60.38 kB / 487.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006133/0.1356, allocations: 367.2 kB / 487.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003758/0.136, allocations: 267.6 kB / 488.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.671e-05/0.1361, allocations: 44.28 kB / 488.2 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00209/0.1382, allocations: 0.8124 MB / 489 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/0.1382, allocations: 0 / 489 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.048e-05/0.1383, allocations: 16 kB / 489.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.1383, allocations: 12 kB / 489.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003724/0.1421, allocations: 1.2 MB / 490.3 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002754/0.1448, allocations: 2.042 MB / 492.3 MB, free: 8.727 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003157/0.148, allocations: 0.8347 MB / 493.2 MB, free: 7.879 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001567/0.1496, allocations: 493.8 kB / 493.6 MB, free: 7.391 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.127e-05/0.1497, allocations: 15.91 kB / 493.7 MB, free: 7.375 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.358e-05/0.1497, allocations: 46.5 kB / 493.7 MB, free: 7.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.204e-06/0.1497, allocations: 3.938 kB / 493.7 MB, free: 7.316 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.0921/0.2418, allocations: 15.74 MB / 0.4975 GB, free: 7.398 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.198e-05/0.2419, allocations: 94.17 kB / 0.4976 GB, free: 7.289 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005656/0.2425, allocations: 389.5 kB / 0.498 GB, free: 6.898 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002007/0.2427, allocations: 45.7 kB / 0.498 GB, free: 6.848 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.2429, allocations: 221 kB / 0.4982 GB, free: 6.625 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004414/0.2433, allocations: 402.1 kB / 0.4986 GB, free: 6.227 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005852/0.2439, allocations: 198.8 kB / 0.4988 GB, free: 6.023 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002459/0.2442, allocations: 374.8 kB / 0.4991 GB, free: 5.648 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003635/0.2478, allocations: 1.341 MB / 0.5005 GB, free: 4.309 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003782/0.2516, allocations: 1.497 MB / 0.5019 GB, free: 2.766 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006769/0.2584, allocations: 2.441 MB / 0.5043 GB, free: 288 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.275e-06/0.2584, allocations: 0 / 0.5043 GB, free: 288 kB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.1893/0.4477, allocations: 2.827 MB / 0.5071 GB, free: 43.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.4478, allocations: 10.31 kB / 0.5071 GB, free: 43.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.4478, allocations: 3.312 kB / 0.5071 GB, free: 43.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.399e-05/0.4478, allocations: 9.719 kB / 0.5071 GB, free: 43.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002698/0.4505, allocations: 409.1 kB / 0.5075 GB, free: 43.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.298e-05/0.4506, allocations: 16.33 kB / 0.5075 GB, free: 43.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001991/0.4526, allocations: 217.7 kB / 0.5077 GB, free: 43.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001389/0.4527, allocations: 39.83 kB / 0.5077 GB, free: 43.33 MB / 382.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.0004379/0.4532, allocations: 235.7 kB / 0.508 GB, free: 43.14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002191/0.4534, allocations: 65.84 kB / 0.508 GB, free: 43.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002083/0.4536, allocations: 108.3 kB / 0.5081 GB, free: 43.05 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.4536, allocations: 18.69 kB / 0.5081 GB, free: 43.05 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/0.4536, allocations: 1.969 kB / 0.5081 GB, free: 43.05 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/0.4537, allocations: 5.859 kB / 0.5081 GB, free: 43.05 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01087/0.4645, allocations: 5.218 MB / 0.5132 GB, free: 40.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.477e-05/0.4646, allocations: 21.19 kB / 0.5133 GB, free: 40.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001494/0.4661, allocations: 354.2 kB / 0.5136 GB, free: 40.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.115e-05/0.4661, allocations: 31.94 kB / 0.5136 GB, free: 40.61 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.402e-05/0.4662, allocations: 51.83 kB / 0.5137 GB, free: 40.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.665e-05/0.4663, allocations: 39.77 kB / 0.5137 GB, free: 40.58 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.37e-05/0.4663, allocations: 35.97 kB / 0.5138 GB, free: 40.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007253/0.4736, allocations: 3.088 MB / 0.5168 GB, free: 38.83 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003956/0.474, allocations: 237.5 kB / 0.517 GB, free: 38.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001389/0.4741, allocations: 51.16 kB / 0.517 GB, free: 38.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001351/0.4755, allocations: 193 kB / 0.5172 GB, free: 38.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004494/0.4759, allocations: 216.9 kB / 0.5174 GB, free: 38.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.947e-05/0.476, allocations: 56.98 kB / 0.5175 GB, free: 38.53 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002853/0.4763, allocations: 264.3 kB / 0.5177 GB, free: 38.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4763, allocations: 0 / 0.5177 GB, free: 38.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001017/0.4774, allocations: 232.3 kB / 0.518 GB, free: 38.36 MB / 382.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.00729/0.4847, allocations: 3.677 MB / 0.5216 GB, free: 36.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006171/0.4908, allocations: 2.406 MB / 0.5239 GB, free: 35.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.379e-05/0.4909, allocations: 2.438 kB / 0.5239 GB, free: 35.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003178/0.4941, allocations: 1.065 MB / 0.5249 GB, free: 34.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0013/0.4954, allocations: 151.7 kB / 0.5251 GB, free: 34.54 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02296/0.5184, allocations: 12.47 MB / 0.5373 GB, free: 22.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.5187, allocations: 0.9359 MB / 0.5382 GB, free: 21.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001164/0.5199, allocations: 208 kB / 0.5384 GB, free: 21.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006007/0.5205, allocations: 219.4 kB / 0.5386 GB, free: 21.4 MB / 382.1 MB Notification: Performance of SimCode: time 7.12e-07/0.5205, allocations: 0 / 0.5386 GB, free: 21.4 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03894/0.5595, allocations: 21.56 MB / 0.5597 GB, free: 15.9 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.11/8.67, allocations: 6.672 kB / 0.5597 GB, free: 15.89 MB / 398.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