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.001741/0.001741, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.002036/0.002036, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.519/1.519, allocations: 230.6 MB / 257.5 MB, free: 7.984 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.2181/0.2181, allocations: 44.91 MB / 358.8 MB, free: 6.359 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.00218/0.00218, allocations: 67.89 kB / 0.4931 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.3218, allocations: 65.47 MB / 0.557 GB, free: 7.531 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004161/0.326, allocations: 2.656 MB / 0.5596 GB, free: 5.117 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.3274, allocations: 0.7362 MB / 0.5603 GB, free: 4.375 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001665/0.3276, allocations: 11.88 kB / 0.5603 GB, free: 4.363 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001657/0.3277, allocations: 43.53 kB / 0.5604 GB, free: 4.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000195/0.3279, allocations: 91.14 kB / 0.5605 GB, free: 4.23 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003053/0.3282, allocations: 95.86 kB / 0.5606 GB, free: 4.137 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004247/0.3287, allocations: 342.5 kB / 0.5609 GB, free: 3.801 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001795/0.3288, allocations: 63.89 kB / 0.5609 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002562/0.3291, allocations: 139.5 kB / 0.5611 GB, free: 3.594 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002038/0.3293, allocations: 131.3 kB / 0.5612 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.053e-05/0.3293, allocations: 24 kB / 0.5612 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.536e-05/0.3294, allocations: 31.98 kB / 0.5613 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.035e-05/0.3295, allocations: 55.78 kB / 0.5613 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001568/0.3296, allocations: 147.3 kB / 0.5614 GB, free: 3.211 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000406/0.33, allocations: 314.5 kB / 0.5617 GB, free: 2.902 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.33, allocations: 3.938 kB / 0.5618 GB, free: 2.898 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.33, allocations: 0 / 0.5618 GB, free: 2.898 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.169e-05/0.33, allocations: 0 / 0.5618 GB, free: 2.898 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.0009443/0.331, allocations: 0.5207 MB / 0.5623 GB, free: 2.348 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.331, allocations: 8.031 kB / 0.5623 GB, free: 2.34 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.129e-05/0.3311, allocations: 58.73 kB / 0.5623 GB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002373/0.3313, allocations: 52.72 kB / 0.5624 GB, free: 2.223 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004156/0.3317, allocations: 217.8 kB / 0.5626 GB, free: 1.984 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.3318, allocations: 28.86 kB / 0.5626 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.657e-05/0.3318, allocations: 32.33 kB / 0.5626 GB, free: 1.926 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005022/0.3323, allocations: 277.2 kB / 0.5629 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/0.3324, allocations: 3.953 kB / 0.5629 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.276e-05/0.3324, allocations: 16 kB / 0.5629 GB, free: 1.609 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.3324, allocations: 11.98 kB / 0.5629 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004394/0.3328, allocations: 179.8 kB / 0.5631 GB, free: 1.422 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001771/0.3346, allocations: 1.234 MB / 0.5643 GB, free: 100 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004568/0.3351, allocations: 238.4 kB / 0.5645 GB, free: 15.83 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002034/0.3353, allocations: 103.5 kB / 0.5646 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.814e-05/0.3353, allocations: 4 kB / 0.5646 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.3353, allocations: 34.56 kB / 0.5647 GB, free: 15.67 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.843e-06/0.3353, allocations: 0 / 0.5647 GB, free: 15.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002566/0.3379, allocations: 1.213 MB / 0.5659 GB, free: 14.34 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.977e-05/0.338, allocations: 136.5 kB / 0.566 GB, free: 14.18 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002485/0.3382, allocations: 229 kB / 0.5662 GB, free: 13.94 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.3383, allocations: 33.7 kB / 0.5662 GB, free: 13.9 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.3384, allocations: 176.6 kB / 0.5664 GB, free: 13.72 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.831e-05/0.3385, allocations: 123 kB / 0.5665 GB, free: 13.6 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.906e-05/0.3386, allocations: 66.14 kB / 0.5666 GB, free: 13.53 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.3388, allocations: 338.8 kB / 0.5669 GB, free: 13.19 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002532/0.339, allocations: 100.8 kB / 0.567 GB, free: 13.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003617/0.3394, allocations: 237.4 kB / 0.5672 GB, free: 12.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006537/0.34, allocations: 381 kB / 0.5676 GB, free: 12.37 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.34, allocations: 320 / 0.5676 GB, free: 12.37 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000809/0.3408, allocations: 393.6 kB / 0.568 GB, free: 11.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.3409, allocations: 8 kB / 0.568 GB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.3409, allocations: 8 kB / 0.568 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.179e-05/0.3409, allocations: 8.094 kB / 0.568 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003969/0.3413, allocations: 107.8 kB / 0.5681 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/0.3413, allocations: 4.344 kB / 0.5681 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002183/0.3415, allocations: 35.91 kB / 0.5681 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.878e-05/0.3415, allocations: 16 kB / 0.5682 GB, free: 11.79 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.0001777/0.3417, allocations: 157.6 kB / 0.5683 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.3418, allocations: 27.81 kB / 0.5683 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.211e-05/0.3419, allocations: 37.7 kB / 0.5684 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.3419, allocations: 4 kB / 0.5684 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3419, allocations: 0 / 0.5684 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.3419, allocations: 7.984 kB / 0.5684 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001605/0.3435, allocations: 0.9534 MB / 0.5693 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3435, allocations: 0 / 0.5693 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003878/0.3439, allocations: 83.88 kB / 0.5694 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.3439, allocations: 4 kB / 0.5694 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.489e-05/0.344, allocations: 7.938 kB / 0.5694 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.344, allocations: 4.781 kB / 0.5694 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.344, allocations: 4 kB / 0.5694 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.345, allocations: 0.7342 MB / 0.5701 GB, free: 9.68 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.515e-05/0.3451, allocations: 28.05 kB / 0.5702 GB, free: 9.652 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.623e-05/0.3451, allocations: 15.98 kB / 0.5702 GB, free: 9.637 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002852/0.3454, allocations: 15.98 kB / 0.5702 GB, free: 9.621 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.635e-05/0.3455, allocations: 31.94 kB / 0.5702 GB, free: 9.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.918e-05/0.3455, allocations: 4.25 kB / 0.5702 GB, free: 9.586 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001521/0.3457, allocations: 164.5 kB / 0.5704 GB, free: 9.426 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3457, allocations: 4 kB / 0.5704 GB, free: 9.422 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005221/0.3462, allocations: 64 kB / 0.5704 GB, free: 9.359 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.001458/0.3477, allocations: 1.282 MB / 0.5717 GB, free: 8.043 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007109/0.3484, allocations: 271.6 kB / 0.5719 GB, free: 7.777 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3484, allocations: 0 / 0.5719 GB, free: 7.777 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002958/0.3487, allocations: 128.8 kB / 0.5721 GB, free: 7.652 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006753/0.3493, allocations: 47.14 kB / 0.5721 GB, free: 7.609 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004984/0.3543, allocations: 3.51 MB / 0.5755 GB, free: 3.875 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004451/0.3548, allocations: 0.7719 MB / 0.5763 GB, free: 3.078 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001539/0.3549, allocations: 34.95 kB / 0.5763 GB, free: 3.043 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.3551, allocations: 95.39 kB / 0.5764 GB, free: 2.949 MB / 414.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3551, allocations: 0 / 0.5764 GB, free: 2.949 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03522/0.3903, allocations: 5.729 MB / 0.582 GB, free: 13.36 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.17, allocations: 3.75 kB / 0.582 GB, free: 13.36 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: 15.27780340299796]