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.001368/0.001368, allocations: 115.8 kB / 20.43 MB, free: 1.449 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.001454/0.001454, allocations: 216.6 kB / 23.74 MB, free: 4.656 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.54/1.54, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.2336/0.2336, allocations: 44.91 MB / 358.8 MB, free: 6.293 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.00199/0.00199, allocations: 67.91 kB / 0.4931 GB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3422, allocations: 65.47 MB / 0.557 GB, free: 7.527 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004292/0.3465, allocations: 2.658 MB / 0.5596 GB, free: 5.133 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.3479, allocations: 0.74 MB / 0.5603 GB, free: 4.387 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.348, allocations: 7.938 kB / 0.5603 GB, free: 4.379 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.3482, allocations: 43.53 kB / 0.5604 GB, free: 4.336 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001853/0.3484, allocations: 95.19 kB / 0.5605 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003121/0.3487, allocations: 95.81 kB / 0.5606 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004187/0.3491, allocations: 334.5 kB / 0.5609 GB, free: 3.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001821/0.3493, allocations: 63.89 kB / 0.5609 GB, free: 3.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002479/0.3495, allocations: 147.5 kB / 0.5611 GB, free: 3.605 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001998/0.3497, allocations: 135.3 kB / 0.5612 GB, free: 3.473 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.002e-05/0.3498, allocations: 24 kB / 0.5612 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.681e-05/0.3498, allocations: 24 kB / 0.5613 GB, free: 3.426 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.563e-05/0.3499, allocations: 59.75 kB / 0.5613 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001464/0.35, allocations: 143.3 kB / 0.5614 GB, free: 3.227 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004322/0.3505, allocations: 310.6 kB / 0.5617 GB, free: 2.922 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.493e-06/0.3505, allocations: 0 / 0.5617 GB, free: 2.922 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3505, allocations: 0 / 0.5617 GB, free: 2.922 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.3505, allocations: 0 / 0.5617 GB, free: 2.922 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.001041/0.3515, allocations: 0.5245 MB / 0.5623 GB, free: 2.367 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.3516, allocations: 8.031 kB / 0.5623 GB, free: 2.359 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.232e-05/0.3517, allocations: 58.73 kB / 0.5623 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000257/0.3519, allocations: 52.72 kB / 0.5624 GB, free: 2.242 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004478/0.3524, allocations: 221.9 kB / 0.5626 GB, free: 2 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.764e-05/0.3524, allocations: 16.88 kB / 0.5626 GB, free: 1.984 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.533e-05/0.3524, allocations: 36.27 kB / 0.5626 GB, free: 1.949 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005109/0.353, allocations: 281.2 kB / 0.5629 GB, free: 1.648 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.445e-05/0.353, allocations: 7.953 kB / 0.5629 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.388e-05/0.353, allocations: 8 kB / 0.5629 GB, free: 1.633 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.353, allocations: 8 kB / 0.5629 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004344/0.3535, allocations: 183.7 kB / 0.5631 GB, free: 1.445 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001747/0.3552, allocations: 1.246 MB / 0.5643 GB, free: 112 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000439/0.3556, allocations: 242.4 kB / 0.5645 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000203/0.3558, allocations: 91.39 kB / 0.5646 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.3559, allocations: 4.156 kB / 0.5646 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.957e-05/0.3559, allocations: 50.48 kB / 0.5647 GB, free: 15.67 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.382e-06/0.3559, allocations: 0 / 0.5647 GB, free: 15.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002651/0.3586, allocations: 1.19 MB / 0.5658 GB, free: 14.37 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.492e-05/0.3587, allocations: 136.5 kB / 0.566 GB, free: 14.2 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002793/0.3589, allocations: 233 kB / 0.5662 GB, free: 13.96 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.498e-05/0.359, allocations: 37.7 kB / 0.5662 GB, free: 13.92 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001324/0.3591, allocations: 177.8 kB / 0.5664 GB, free: 13.74 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.977e-05/0.3592, allocations: 123 kB / 0.5665 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.3593, allocations: 62.14 kB / 0.5666 GB, free: 13.55 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.3595, allocations: 342.8 kB / 0.5669 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002538/0.3597, allocations: 104.9 kB / 0.567 GB, free: 13.11 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003621/0.3601, allocations: 245.4 kB / 0.5672 GB, free: 12.81 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006459/0.3607, allocations: 369.1 kB / 0.5676 GB, free: 12.39 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.319e-06/0.3607, allocations: 4 kB / 0.5676 GB, free: 12.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007667/0.3615, allocations: 400.8 kB / 0.568 GB, free: 11.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.3615, allocations: 4 kB / 0.568 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.3615, allocations: 4.406 kB / 0.568 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.245e-05/0.3615, allocations: 15.94 kB / 0.568 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004043/0.3619, allocations: 99.88 kB / 0.5681 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.717e-05/0.362, allocations: 11.92 kB / 0.5681 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002183/0.3622, allocations: 27.92 kB / 0.5681 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.808e-05/0.3622, allocations: 16 kB / 0.5682 GB, free: 11.81 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.0001879/0.3624, allocations: 149.7 kB / 0.5683 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.3625, allocations: 31.81 kB / 0.5683 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.71e-05/0.3626, allocations: 37.7 kB / 0.5684 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.3626, allocations: 4 kB / 0.5684 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.3626, allocations: 4 kB / 0.5684 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.3626, allocations: 3.984 kB / 0.5684 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001562/0.3642, allocations: 0.9459 MB / 0.5693 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/0.3642, allocations: 4 kB / 0.5693 GB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003712/0.3645, allocations: 79.88 kB / 0.5694 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.3646, allocations: 4 kB / 0.5694 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.446e-05/0.3646, allocations: 11.94 kB / 0.5694 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.3646, allocations: 4.344 kB / 0.5694 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.3646, allocations: 4 kB / 0.5694 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.3657, allocations: 0.7419 MB / 0.5701 GB, free: 9.695 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.636e-05/0.3657, allocations: 27.8 kB / 0.5701 GB, free: 9.668 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.853e-05/0.3658, allocations: 16 kB / 0.5702 GB, free: 9.652 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000283/0.3661, allocations: 19.98 kB / 0.5702 GB, free: 9.633 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.3662, allocations: 31.89 kB / 0.5702 GB, free: 9.602 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-05/0.3662, allocations: 12 kB / 0.5702 GB, free: 9.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001522/0.3664, allocations: 156.5 kB / 0.5704 GB, free: 9.438 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3664, allocations: 0 / 0.5704 GB, free: 9.438 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000484/0.3668, allocations: 68 kB / 0.5704 GB, free: 9.371 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.001389/0.3682, allocations: 1.278 MB / 0.5717 GB, free: 8.059 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006226/0.3688, allocations: 264.3 kB / 0.5719 GB, free: 7.801 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3688, allocations: 0 / 0.5719 GB, free: 7.801 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002877/0.3691, allocations: 131.7 kB / 0.5721 GB, free: 7.672 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006547/0.3698, allocations: 41.23 kB / 0.5721 GB, free: 7.633 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005391/0.3752, allocations: 3.513 MB / 0.5755 GB, free: 3.895 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004603/0.3756, allocations: 0.7719 MB / 0.5763 GB, free: 3.098 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001469/0.3758, allocations: 38.94 kB / 0.5763 GB, free: 3.059 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001622/0.376, allocations: 95.41 kB / 0.5764 GB, free: 2.965 MB / 414.1 MB Notification: Performance of SimCode: time 9.72e-07/0.376, allocations: 0 / 0.5764 GB, free: 2.965 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03524/0.4112, allocations: 5.732 MB / 0.582 GB, free: 13.38 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.05, allocations: 3.984 kB / 0.582 GB, free: 13.38 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219824 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.15621408703737]