Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.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.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001714/0.001714, allocations: 117.6 kB / 17.78 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.002063/0.002063, allocations: 200.7 kB / 18.73 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.391/1.391, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2253/0.2253, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002347/0.002347, allocations: 79.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3576/0.3599, allocations: 62.43 MB / 0.5305 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004179/0.3642, allocations: 2.635 MB / 0.5331 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001552/0.3658, allocations: 0.7336 MB / 0.5338 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002106/0.366, allocations: 5.375 kB / 0.5338 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001881/0.3662, allocations: 39.16 kB / 0.5338 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002692/0.3665, allocations: 85.23 kB / 0.5339 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003645/0.3669, allocations: 106.5 kB / 0.534 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004099/0.3673, allocations: 337.5 kB / 0.5343 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002192/0.3675, allocations: 83.48 kB / 0.5344 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002627/0.3678, allocations: 141.2 kB / 0.5345 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001879/0.368, allocations: 128.7 kB / 0.5347 GB, free: 9.988 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.077e-05/0.368, allocations: 22 kB / 0.5347 GB, free: 9.988 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.702e-05/0.3681, allocations: 28.69 kB / 0.5347 GB, free: 9.984 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.815e-05/0.3682, allocations: 60 kB / 0.5348 GB, free: 9.934 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001471/0.3684, allocations: 146 kB / 0.5349 GB, free: 9.836 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004236/0.3688, allocations: 309.9 kB / 0.5352 GB, free: 9.617 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.3688, allocations: 0.875 kB / 0.5352 GB, free: 9.617 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3688, allocations: 0 / 0.5352 GB, free: 9.617 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.3688, allocations: 4 kB / 0.5352 GB, free: 9.613 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009627/0.3698, allocations: 0.5953 MB / 0.5358 GB, free: 9.074 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.3699, allocations: 9.094 kB / 0.5358 GB, free: 9.074 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.674e-05/0.3699, allocations: 62.59 kB / 0.5359 GB, free: 9.012 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002509/0.3702, allocations: 52.39 kB / 0.5359 GB, free: 8.988 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004233/0.3706, allocations: 281 kB / 0.5362 GB, free: 8.711 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.312e-05/0.3707, allocations: 19.81 kB / 0.5362 GB, free: 8.703 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.831e-05/0.3707, allocations: 37.53 kB / 0.5362 GB, free: 8.684 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005011/0.3712, allocations: 283.4 kB / 0.5365 GB, free: 8.477 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.26e-05/0.3713, allocations: 6.234 kB / 0.5365 GB, free: 8.473 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.36e-05/0.3713, allocations: 11.94 kB / 0.5365 GB, free: 8.465 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.868e-06/0.3713, allocations: 6.25 kB / 0.5365 GB, free: 8.465 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004328/0.3717, allocations: 183 kB / 0.5367 GB, free: 8.383 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001891/0.3736, allocations: 1.3 MB / 0.538 GB, free: 7.172 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004918/0.3742, allocations: 254.1 kB / 0.5382 GB, free: 6.988 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002106/0.3744, allocations: 100.5 kB / 0.5383 GB, free: 6.922 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.354e-05/0.3744, allocations: 7.406 kB / 0.5383 GB, free: 6.918 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.257e-05/0.3745, allocations: 40.69 kB / 0.5384 GB, free: 6.871 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.174e-06/0.3745, allocations: 0 / 0.5384 GB, free: 6.871 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.00292/0.3774, allocations: 1.583 MB / 0.5399 GB, free: 5.457 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.976e-05/0.3775, allocations: 137 kB / 0.54 GB, free: 5.297 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002511/0.3778, allocations: 228.2 kB / 0.5402 GB, free: 5.129 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/0.3778, allocations: 31.27 kB / 0.5403 GB, free: 5.094 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/0.3779, allocations: 178.2 kB / 0.5404 GB, free: 4.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.53e-05/0.378, allocations: 120.2 kB / 0.5406 GB, free: 4.824 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/0.3781, allocations: 68.31 kB / 0.5406 GB, free: 4.777 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.3783, allocations: 336.7 kB / 0.5409 GB, free: 4.445 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002547/0.3786, allocations: 108.8 kB / 0.5411 GB, free: 4.395 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00036/0.3789, allocations: 247.5 kB / 0.5413 GB, free: 4.168 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006742/0.3796, allocations: 364.8 kB / 0.5416 GB, free: 3.883 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.3796, allocations: 1.312 kB / 0.5416 GB, free: 3.883 MB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009144/0.3806, allocations: 401.3 kB / 0.542 GB, free: 3.676 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.799e-05/0.3806, allocations: 7.031 kB / 0.542 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.3806, allocations: 12.05 kB / 0.542 GB, free: 3.668 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.01e-05/0.3807, allocations: 7 kB / 0.542 GB, free: 3.668 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004341/0.3811, allocations: 98.31 kB / 0.5421 GB, free: 3.645 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.28e-05/0.3811, allocations: 11.06 kB / 0.5421 GB, free: 3.641 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000241/0.3814, allocations: 24.95 kB / 0.5422 GB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.919e-05/0.3814, allocations: 18.02 kB / 0.5422 GB, free: 3.625 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * 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.0002707/0.3817, allocations: 164.8 kB / 0.5423 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.3819, allocations: 29.75 kB / 0.5424 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001069/0.382, allocations: 32.61 kB / 0.5424 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.265e-05/0.382, allocations: 8.562 kB / 0.5424 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.601e-05/0.382, allocations: 1.094 kB / 0.5424 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.382, allocations: 1.219 kB / 0.5424 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001707/0.3837, allocations: 0.9833 MB / 0.5434 GB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.3838, allocations: 1.125 kB / 0.5434 GB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003706/0.3841, allocations: 74.3 kB / 0.5434 GB, free: 2.582 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.682e-06/0.3842, allocations: 7.188 kB / 0.5435 GB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.766e-05/0.3842, allocations: 16.14 kB / 0.5435 GB, free: 2.566 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.314e-06/0.3842, allocations: 5.312 kB / 0.5435 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.349e-06/0.3842, allocations: 3.062 kB / 0.5435 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001077/0.3853, allocations: 0.7249 MB / 0.5442 GB, free: 2.016 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.166e-05/0.3854, allocations: 101.2 kB / 0.5443 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.941e-05/0.3855, allocations: 11.47 kB / 0.5443 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002832/0.3857, allocations: 22.39 kB / 0.5443 GB, free: 1.887 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.3859, allocations: 23.34 kB / 0.5443 GB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.856e-05/0.3859, allocations: 19.17 kB / 0.5444 GB, free: 1.863 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001933/0.3861, allocations: 159 kB / 0.5445 GB, free: 1.746 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3861, allocations: 3.938 kB / 0.5445 GB, free: 1.742 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005607/0.3867, allocations: 69.34 kB / 0.5446 GB, free: 1.73 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * 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.001529/0.3882, allocations: 1.272 MB / 0.5458 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006759/0.3889, allocations: 278.7 kB / 0.5461 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.3889, allocations: 1.188 kB / 0.5461 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002786/0.3892, allocations: 133.7 kB / 0.5462 GB, free: 488 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006748/0.3899, allocations: 38.14 kB / 0.5462 GB, free: 468 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004655/0.3945, allocations: 3.524 MB / 0.5497 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003331/0.3949, allocations: 0.772 MB / 0.5504 GB, free: 12.16 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001427/0.3951, allocations: 34.95 kB / 0.5505 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.3952, allocations: 91.41 kB / 0.5506 GB, free: 12.04 MB / 414.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3952, allocations: 0 / 0.5506 GB, free: 12.04 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02646/0.4217, allocations: 5.38 MB / 0.5558 GB, free: 6.727 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.385/8.807, allocations: 11.06 kB / 0.5558 GB, free: 6.723 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches