Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.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.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",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.001344/0.001344, allocations: 113.8 kB / 17.78 MB, free: 5.277 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.001374/0.001374, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.418/1.418, allocations: 222.9 MB / 242.4 MB, free: 15.14 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.223/0.223, allocations: 44.18 MB / 336.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 63.89 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3146, allocations: 60.83 MB / 0.5184 GB, free: 3.258 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003377/0.318, allocations: 2.606 MB / 0.521 GB, free: 1.434 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001103/0.3191, allocations: 0.6481 MB / 0.5216 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001797/0.3193, allocations: 4.594 kB / 0.5216 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001565/0.3195, allocations: 42.09 kB / 0.5216 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001742/0.3196, allocations: 90.55 kB / 0.5217 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002568/0.3199, allocations: 93.72 kB / 0.5218 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003585/0.3203, allocations: 337.2 kB / 0.5221 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000154/0.3204, allocations: 54.97 kB / 0.5222 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001805/0.3206, allocations: 130.1 kB / 0.5223 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001604/0.3207, allocations: 136 kB / 0.5224 GB, free: 496 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.802e-05/0.3208, allocations: 21.72 kB / 0.5225 GB, free: 496 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.207e-05/0.3208, allocations: 22.38 kB / 0.5225 GB, free: 496 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.478e-05/0.3209, allocations: 49.67 kB / 0.5225 GB, free: 464 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.321, allocations: 148.3 kB / 0.5227 GB, free: 372 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003488/0.3213, allocations: 310.6 kB / 0.523 GB, free: 236 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.3213, allocations: 5.156 kB / 0.523 GB, free: 232 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3213, allocations: 0 / 0.523 GB, free: 232 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.3214, allocations: 0 / 0.523 GB, free: 232 kB / 382.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.0009187/0.3223, allocations: 0.584 MB / 0.5235 GB, free: 15.73 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.3223, allocations: 14 kB / 0.5235 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.094e-05/0.3224, allocations: 60.33 kB / 0.5236 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.418e-05/0.3224, allocations: 33.59 kB / 0.5236 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004264/0.3229, allocations: 276.3 kB / 0.5239 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.3229, allocations: 19.06 kB / 0.5239 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.944e-05/0.323, allocations: 35.7 kB / 0.524 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00053/0.3235, allocations: 281.9 kB / 0.5242 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.133e-05/0.3235, allocations: 0.7031 kB / 0.5242 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.3235, allocations: 10.59 kB / 0.5242 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.3235, allocations: 7.688 kB / 0.5242 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004692/0.324, allocations: 186.2 kB / 0.5244 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001879/0.3259, allocations: 1.311 MB / 0.5257 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004547/0.3263, allocations: 234.3 kB / 0.5259 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002182/0.3266, allocations: 92.64 kB / 0.526 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.087e-05/0.3266, allocations: 7.297 kB / 0.526 GB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/0.3266, allocations: 39.28 kB / 0.5261 GB, free: 13.83 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.713e-06/0.3266, allocations: 0 / 0.5261 GB, free: 13.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002899/0.3295, allocations: 1.579 MB / 0.5276 GB, free: 12.51 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.3296, allocations: 141.3 kB / 0.5277 GB, free: 12.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002485/0.3299, allocations: 226.9 kB / 0.5279 GB, free: 12.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.261e-05/0.3299, allocations: 31.08 kB / 0.528 GB, free: 12.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.33, allocations: 177.2 kB / 0.5281 GB, free: 12.01 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.3301, allocations: 119.6 kB / 0.5283 GB, free: 11.92 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/0.3303, allocations: 74.52 kB / 0.5283 GB, free: 11.87 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.3304, allocations: 338 kB / 0.5287 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002718/0.3307, allocations: 106.2 kB / 0.5288 GB, free: 11.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003846/0.3311, allocations: 233.1 kB / 0.529 GB, free: 11.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007692/0.3319, allocations: 378.6 kB / 0.5293 GB, free: 11.05 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.3319, allocations: 5.875 kB / 0.5293 GB, free: 11.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008673/0.3327, allocations: 394.5 kB / 0.5297 GB, free: 10.85 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.3328, allocations: 7.125 kB / 0.5297 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.3328, allocations: 4.438 kB / 0.5297 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.3328, allocations: 7.094 kB / 0.5297 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003942/0.3332, allocations: 102.9 kB / 0.5298 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.3332, allocations: 10.12 kB / 0.5298 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002405/0.3334, allocations: 33.95 kB / 0.5299 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.308e-05/0.3335, allocations: 17.97 kB / 0.5299 GB, free: 10.8 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.0001906/0.3337, allocations: 155.9 kB / 0.53 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/0.3338, allocations: 32.95 kB / 0.5301 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.894e-05/0.3338, allocations: 32.69 kB / 0.5301 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.3339, allocations: 3.906 kB / 0.5301 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.3339, allocations: 1.594 kB / 0.5301 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.3339, allocations: 5.734 kB / 0.5301 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001644/0.3355, allocations: 0.9743 MB / 0.5311 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.3355, allocations: 1.219 kB / 0.5311 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003937/0.3359, allocations: 82.42 kB / 0.5311 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.3359, allocations: 3.219 kB / 0.5312 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.689e-05/0.3359, allocations: 11.59 kB / 0.5312 GB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.472e-06/0.336, allocations: 6.594 kB / 0.5312 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.336, allocations: 2 kB / 0.5312 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.3371, allocations: 0.734 MB / 0.5319 GB, free: 9.191 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.375e-05/0.3371, allocations: 100.5 kB / 0.532 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.718e-05/0.3372, allocations: 16.14 kB / 0.532 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000293/0.3375, allocations: 22.23 kB / 0.532 GB, free: 9.059 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.731e-05/0.3376, allocations: 23.72 kB / 0.532 GB, free: 9.047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.027e-05/0.3376, allocations: 10.59 kB / 0.5321 GB, free: 9.043 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001818/0.3378, allocations: 156.7 kB / 0.5322 GB, free: 8.926 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3378, allocations: 1.312 kB / 0.5322 GB, free: 8.926 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005385/0.3383, allocations: 67.78 kB / 0.5323 GB, free: 8.914 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.00149/0.3398, allocations: 1.276 MB / 0.5335 GB, free: 7.824 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007057/0.3405, allocations: 272 kB / 0.5338 GB, free: 7.711 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3405, allocations: 0 / 0.5338 GB, free: 7.711 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002903/0.3408, allocations: 124.8 kB / 0.5339 GB, free: 7.66 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006951/0.3415, allocations: 44 kB / 0.5339 GB, free: 7.637 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005118/0.3466, allocations: 3.5 MB / 0.5374 GB, free: 4.773 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005052/0.3471, allocations: 0.7746 MB / 0.5381 GB, free: 4.035 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001789/0.3473, allocations: 34.64 kB / 0.5381 GB, free: 4.016 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001832/0.3475, allocations: 91.81 kB / 0.5382 GB, free: 3.941 MB / 398.1 MB Notification: Performance of SimCode: time 1.163e-06/0.3475, allocations: 0 / 0.5382 GB, free: 3.941 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03174/0.3792, allocations: 5.341 MB / 0.5434 GB, free: 1.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.329/8.709, allocations: 17.98 kB / 0.5435 GB, free: 1.254 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches