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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 209.2 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.526/1.526, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2326/0.2326, allocations: 44.94 MB / 358.9 MB, free: 6.02 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00201/0.00201, allocations: 63.91 kB / 0.493 GB, free: 10.53 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.323, allocations: 65.48 MB / 0.5569 GB, free: 7.316 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004153/0.3271, allocations: 2.466 MB / 0.5594 GB, free: 5.047 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001339/0.3285, allocations: 0.705 MB / 0.56 GB, free: 4.336 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000134/0.3286, allocations: 7.938 kB / 0.5601 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001666/0.3288, allocations: 47.52 kB / 0.5601 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001771/0.329, allocations: 83.2 kB / 0.5602 GB, free: 4.199 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003102/0.3293, allocations: 107.8 kB / 0.5603 GB, free: 4.094 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003895/0.3297, allocations: 334.5 kB / 0.5606 GB, free: 3.766 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001706/0.3298, allocations: 59.89 kB / 0.5607 GB, free: 3.699 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002449/0.3301, allocations: 143.5 kB / 0.5608 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001828/0.3303, allocations: 123.2 kB / 0.5609 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.996e-05/0.3303, allocations: 24 kB / 0.5609 GB, free: 3.414 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.741e-05/0.3304, allocations: 24 kB / 0.561 GB, free: 3.391 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.578e-05/0.3304, allocations: 55.83 kB / 0.561 GB, free: 3.336 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001383/0.3306, allocations: 123.4 kB / 0.5611 GB, free: 3.215 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003984/0.331, allocations: 310.6 kB / 0.5614 GB, free: 2.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.331, allocations: 4 kB / 0.5614 GB, free: 2.906 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.331, allocations: 0 / 0.5614 GB, free: 2.906 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.331, allocations: 0 / 0.5614 GB, free: 2.906 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.0009143/0.3319, allocations: 0.5245 MB / 0.5619 GB, free: 2.352 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.3319, allocations: 12.03 kB / 0.562 GB, free: 2.34 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.227e-05/0.332, allocations: 62.72 kB / 0.562 GB, free: 2.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002336/0.3323, allocations: 52.67 kB / 0.5621 GB, free: 2.219 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003924/0.3326, allocations: 213.9 kB / 0.5623 GB, free: 1.984 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.382e-05/0.3327, allocations: 24.88 kB / 0.5623 GB, free: 1.961 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.466e-05/0.3327, allocations: 28.33 kB / 0.5623 GB, free: 1.934 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004987/0.3332, allocations: 285.2 kB / 0.5626 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.54e-05/0.3332, allocations: 11.94 kB / 0.5626 GB, free: 1.617 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.532e-05/0.3333, allocations: 12 kB / 0.5626 GB, free: 1.605 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.3333, allocations: 4 kB / 0.5626 GB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004243/0.3337, allocations: 179.8 kB / 0.5628 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001777/0.3355, allocations: 1.196 MB / 0.564 GB, free: 144 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004572/0.3359, allocations: 234.5 kB / 0.5642 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000207/0.3361, allocations: 95.38 kB / 0.5643 GB, free: 15.77 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.64e-05/0.3362, allocations: 12 kB / 0.5643 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.572e-05/0.3362, allocations: 38.5 kB / 0.5643 GB, free: 15.71 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.533e-06/0.3362, allocations: 0 / 0.5643 GB, free: 15.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002512/0.3387, allocations: 1.205 MB / 0.5655 GB, free: 14.39 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.416e-05/0.3388, allocations: 140.5 kB / 0.5656 GB, free: 14.22 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002379/0.3391, allocations: 229 kB / 0.5658 GB, free: 13.98 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.207e-05/0.3391, allocations: 33.7 kB / 0.5659 GB, free: 13.95 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001329/0.3392, allocations: 176.5 kB / 0.566 GB, free: 13.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.904e-05/0.3393, allocations: 131 kB / 0.5662 GB, free: 13.64 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/0.3394, allocations: 70.08 kB / 0.5662 GB, free: 13.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.3396, allocations: 338.8 kB / 0.5666 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002629/0.3399, allocations: 100.8 kB / 0.5667 GB, free: 13.13 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003569/0.3402, allocations: 237.4 kB / 0.5669 GB, free: 12.84 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006621/0.3409, allocations: 364.8 kB / 0.5672 GB, free: 12.42 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.3409, allocations: 4 kB / 0.5672 GB, free: 12.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007974/0.3417, allocations: 402 kB / 0.5676 GB, free: 12.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.3417, allocations: 6.812 kB / 0.5676 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.3417, allocations: 4 kB / 0.5676 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/0.3417, allocations: 8 kB / 0.5676 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003796/0.3421, allocations: 104.3 kB / 0.5677 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.451e-05/0.3421, allocations: 7.938 kB / 0.5677 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002216/0.3423, allocations: 28.3 kB / 0.5678 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.856e-05/0.3424, allocations: 19.98 kB / 0.5678 GB, free: 11.84 MB / 414.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.0001697/0.3425, allocations: 153.7 kB / 0.5679 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.3426, allocations: 35.75 kB / 0.568 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.613e-05/0.3427, allocations: 33.7 kB / 0.568 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.3427, allocations: 4 kB / 0.568 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.3427, allocations: 4 kB / 0.568 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.3427, allocations: 320 / 0.568 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001568/0.3443, allocations: 0.9223 MB / 0.5689 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.3443, allocations: 4 kB / 0.5689 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003663/0.3447, allocations: 75.89 kB / 0.569 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.541e-06/0.3447, allocations: 4 kB / 0.569 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.689e-05/0.3447, allocations: 23.92 kB / 0.569 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.3447, allocations: 0 / 0.569 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.3447, allocations: 4 kB / 0.569 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001103/0.3458, allocations: 0.7378 MB / 0.5697 GB, free: 9.754 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.705e-05/0.3459, allocations: 31.75 kB / 0.5698 GB, free: 9.723 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.1e-05/0.3459, allocations: 12 kB / 0.5698 GB, free: 9.711 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003092/0.3462, allocations: 15.98 kB / 0.5698 GB, free: 9.695 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.742e-05/0.3463, allocations: 31.89 kB / 0.5698 GB, free: 9.664 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.967e-05/0.3463, allocations: 12 kB / 0.5698 GB, free: 9.652 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001466/0.3465, allocations: 156.5 kB / 0.57 GB, free: 9.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3465, allocations: 0 / 0.57 GB, free: 9.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004976/0.347, allocations: 64 kB / 0.57 GB, free: 9.438 MB / 414.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.00141/0.3484, allocations: 1.282 MB / 0.5713 GB, free: 8.121 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006576/0.349, allocations: 267.9 kB / 0.5716 GB, free: 7.859 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.349, allocations: 0 / 0.5716 GB, free: 7.859 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002954/0.3493, allocations: 131.7 kB / 0.5717 GB, free: 7.73 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006423/0.35, allocations: 44.61 kB / 0.5717 GB, free: 7.691 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004752/0.3547, allocations: 3.509 MB / 0.5751 GB, free: 3.961 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001867/0.3549, allocations: 168 kB / 0.5753 GB, free: 3.781 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000142/0.355, allocations: 34.95 kB / 0.5753 GB, free: 3.746 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001661/0.3552, allocations: 91.41 kB / 0.5754 GB, free: 3.656 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3552, allocations: 0 / 0.5754 GB, free: 3.656 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03236/0.3876, allocations: 6.007 MB / 0.5813 GB, free: 13.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.81, allocations: 4.062 kB / 0.5813 GB, free: 13.8 MB / 430.1 MB " [Timeout remaining time 648] (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.000219824 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable speed4.s in file ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.csv. Warning: Get data of variable speed4.s from file ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.937601025681943]