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.001281/0.001281, allocations: 116.1 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001165/0.001165, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2145/0.2145, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 76.16 kB / 480.8 MB, free: 4.605 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3767/0.3781, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003693/0.3818, allocations: 2.634 MB / 0.5331 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001284/0.3832, allocations: 0.725 MB / 0.5338 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001504/0.3833, allocations: 6.281 kB / 0.5338 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001638/0.3835, allocations: 42.22 kB / 0.5338 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001776/0.3837, allocations: 89.62 kB / 0.5339 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003168/0.384, allocations: 103.8 kB / 0.534 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000359/0.3844, allocations: 341 kB / 0.5343 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001994/0.3846, allocations: 79.06 kB / 0.5344 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002356/0.3848, allocations: 141.2 kB / 0.5345 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001653/0.385, allocations: 128.6 kB / 0.5347 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.563e-05/0.3851, allocations: 22 kB / 0.5347 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.807e-05/0.3851, allocations: 28.75 kB / 0.5347 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.843e-05/0.3852, allocations: 56.02 kB / 0.5348 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001329/0.3853, allocations: 146 kB / 0.5349 GB, free: 9.992 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003754/0.3857, allocations: 319.5 kB / 0.5352 GB, free: 9.766 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3857, allocations: 0 / 0.5352 GB, free: 9.766 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3857, allocations: 4 kB / 0.5352 GB, free: 9.762 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.583e-06/0.3858, allocations: 0 / 0.5352 GB, free: 9.762 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.0009116/0.3867, allocations: 0.5871 MB / 0.5358 GB, free: 9.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.3867, allocations: 9.531 kB / 0.5358 GB, free: 9.23 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.632e-05/0.3868, allocations: 66.88 kB / 0.5359 GB, free: 9.164 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002495/0.3871, allocations: 48.77 kB / 0.5359 GB, free: 9.145 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003961/0.3875, allocations: 284 kB / 0.5362 GB, free: 8.863 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.3875, allocations: 23.02 kB / 0.5362 GB, free: 8.852 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.083e-05/0.3876, allocations: 33.72 kB / 0.5362 GB, free: 8.836 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004932/0.3881, allocations: 288.5 kB / 0.5365 GB, free: 8.625 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.329e-05/0.3881, allocations: 6.359 kB / 0.5365 GB, free: 8.621 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.04e-05/0.3881, allocations: 11.31 kB / 0.5365 GB, free: 8.613 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.3881, allocations: 5.688 kB / 0.5365 GB, free: 8.613 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004317/0.3886, allocations: 184 kB / 0.5367 GB, free: 8.531 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.3902, allocations: 1.299 MB / 0.538 GB, free: 7.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004126/0.3906, allocations: 255.4 kB / 0.5382 GB, free: 7.137 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002051/0.3908, allocations: 95.52 kB / 0.5383 GB, free: 7.074 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.3909, allocations: 11.7 kB / 0.5383 GB, free: 7.066 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.3909, allocations: 40.78 kB / 0.5384 GB, free: 7.02 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.773e-06/0.3909, allocations: 0 / 0.5384 GB, free: 7.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002628/0.3935, allocations: 1.581 MB / 0.5399 GB, free: 5.605 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001303/0.3937, allocations: 133.2 kB / 0.54 GB, free: 5.449 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000261/0.3939, allocations: 224.6 kB / 0.5402 GB, free: 5.285 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.358e-05/0.394, allocations: 30.89 kB / 0.5403 GB, free: 5.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.3941, allocations: 186.4 kB / 0.5404 GB, free: 5.078 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.149e-05/0.3942, allocations: 117 kB / 0.5406 GB, free: 4.977 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.572e-05/0.3943, allocations: 71.81 kB / 0.5406 GB, free: 4.926 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.3944, allocations: 337.9 kB / 0.5409 GB, free: 4.594 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002405/0.3947, allocations: 103.9 kB / 0.541 GB, free: 4.547 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000321/0.395, allocations: 246.8 kB / 0.5413 GB, free: 4.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006228/0.3956, allocations: 364.8 kB / 0.5416 GB, free: 4.035 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.3957, allocations: 5.594 kB / 0.5416 GB, free: 4.031 MB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007827/0.3964, allocations: 405.2 kB / 0.542 GB, free: 3.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.3965, allocations: 6.719 kB / 0.542 GB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.878e-06/0.3965, allocations: 3.938 kB / 0.542 GB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.959e-05/0.3965, allocations: 7.938 kB / 0.542 GB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003938/0.3969, allocations: 98.16 kB / 0.5421 GB, free: 3.797 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/0.3969, allocations: 10.59 kB / 0.5421 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002207/0.3972, allocations: 29.81 kB / 0.5422 GB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.108e-05/0.3972, allocations: 18.31 kB / 0.5422 GB, free: 3.773 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.0001559/0.3974, allocations: 164.2 kB / 0.5423 GB, free: 3.617 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.3975, allocations: 29.41 kB / 0.5424 GB, free: 3.602 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.941e-05/0.3976, allocations: 36.95 kB / 0.5424 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.3976, allocations: 3.312 kB / 0.5424 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/0.3976, allocations: 2.219 kB / 0.5424 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.3976, allocations: 0.9688 kB / 0.5424 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001454/0.399, allocations: 0.9799 MB / 0.5434 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.3991, allocations: 1.359 kB / 0.5434 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003562/0.3994, allocations: 82.42 kB / 0.5435 GB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.3994, allocations: 2.594 kB / 0.5435 GB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.668e-05/0.3995, allocations: 15.77 kB / 0.5435 GB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.334e-06/0.3995, allocations: 6.938 kB / 0.5435 GB, free: 2.711 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.3995, allocations: 5.484 kB / 0.5435 GB, free: 2.707 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.4005, allocations: 0.7257 MB / 0.5442 GB, free: 2.16 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.869e-05/0.4006, allocations: 100.6 kB / 0.5443 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.293e-05/0.4007, allocations: 12.5 kB / 0.5443 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002861/0.401, allocations: 22.39 kB / 0.5443 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.177e-05/0.401, allocations: 22.19 kB / 0.5443 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.864e-05/0.4011, allocations: 15.39 kB / 0.5444 GB, free: 2.012 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000149/0.4012, allocations: 162.8 kB / 0.5445 GB, free: 1.891 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4012, allocations: 0 / 0.5445 GB, free: 1.891 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004855/0.4017, allocations: 65.06 kB / 0.5446 GB, free: 1.883 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.001383/0.4031, allocations: 1.276 MB / 0.5458 GB, free: 0.793 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006619/0.4038, allocations: 275.4 kB / 0.5461 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.4038, allocations: 0 / 0.5461 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002821/0.4041, allocations: 134.9 kB / 0.5462 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000682/0.4048, allocations: 43.86 kB / 0.5463 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004469/0.4092, allocations: 3.52 MB / 0.5497 GB, free: 13.1 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003753/0.4096, allocations: 0.772 MB / 0.5504 GB, free: 12.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000137/0.4098, allocations: 30.95 kB / 0.5505 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.4099, allocations: 104 kB / 0.5506 GB, free: 12.17 MB / 414.1 MB Notification: Performance of SimCode: time 4.41e-07/0.41, allocations: 0 / 0.5506 GB, free: 12.17 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02284/0.4328, allocations: 5.377 MB / 0.5558 GB, free: 6.867 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.464/8.897, allocations: 12.09 kB / 0.5558 GB, free: 6.859 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