Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.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.001716/0.001716, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.002208/0.002208, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.663/1.663, allocations: 230.6 MB / 258.3 MB, free: 8.035 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.2344/0.2344, allocations: 44.92 MB / 359.6 MB, free: 6.289 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.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking",fmuType="cs",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.002294/0.002294, allocations: 63.91 kB / 0.4938 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3502/0.3525, allocations: 65.47 MB / 0.5578 GB, free: 7.535 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004822/0.3573, allocations: 2.817 MB / 0.5605 GB, free: 4.957 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002102/0.3594, allocations: 1.024 MB / 0.5615 GB, free: 3.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002855/0.3597, allocations: 7.938 kB / 0.5615 GB, free: 3.922 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002221/0.36, allocations: 51.45 kB / 0.5616 GB, free: 3.871 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00026/0.3602, allocations: 111 kB / 0.5617 GB, free: 3.762 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005914/0.3608, allocations: 147.6 kB / 0.5618 GB, free: 3.617 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005134/0.3613, allocations: 386.2 kB / 0.5622 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000203/0.3615, allocations: 63.17 kB / 0.5623 GB, free: 3.172 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001868/0.3617, allocations: 139.5 kB / 0.5624 GB, free: 3.035 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002461/0.362, allocations: 151.3 kB / 0.5625 GB, free: 2.887 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.333e-05/0.362, allocations: 28 kB / 0.5626 GB, free: 2.859 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001361/0.3621, allocations: 51.98 kB / 0.5626 GB, free: 2.809 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.109e-05/0.3622, allocations: 67.7 kB / 0.5627 GB, free: 2.742 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001654/0.3624, allocations: 163.2 kB / 0.5628 GB, free: 2.582 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005303/0.3629, allocations: 374.4 kB / 0.5632 GB, free: 2.215 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3629, allocations: 0 / 0.5632 GB, free: 2.215 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3629, allocations: 0 / 0.5632 GB, free: 2.215 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.3629, allocations: 0 / 0.5632 GB, free: 2.215 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: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.0009922/0.3639, allocations: 0.5364 MB / 0.5637 GB, free: 1.648 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.364, allocations: 15.97 kB / 0.5637 GB, free: 1.633 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.308e-05/0.364, allocations: 8.781 kB / 0.5637 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.617e-05/0.3641, allocations: 70.72 kB / 0.5638 GB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002936/0.3644, allocations: 56.69 kB / 0.5639 GB, free: 1.492 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004196/0.3648, allocations: 218.7 kB / 0.5641 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.386e-05/0.3648, allocations: 21.03 kB / 0.5641 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.277e-05/0.3649, allocations: 43.89 kB / 0.5641 GB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000516/0.3654, allocations: 298.3 kB / 0.5644 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.703e-05/0.3654, allocations: 7.953 kB / 0.5644 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.784e-05/0.3654, allocations: 12 kB / 0.5644 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.3655, allocations: 8 kB / 0.5644 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003561/0.3658, allocations: 183.8 kB / 0.5646 GB, free: 0.668 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002197/0.368, allocations: 1.284 MB / 0.5659 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004644/0.3685, allocations: 245 kB / 0.5661 GB, free: 15.01 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.3686, allocations: 72.28 kB / 0.5662 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/0.3686, allocations: 7.984 kB / 0.5662 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.3686, allocations: 46.44 kB / 0.5662 GB, free: 14.86 MB / 414.1 MB Notification: Performance of pre-optimization done (n=22): time 1.913e-06/0.3686, allocations: 0 / 0.5662 GB, free: 14.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005331/0.3692, allocations: 225.3 kB / 0.5664 GB, free: 14.63 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.3693, allocations: 162.2 kB / 0.5666 GB, free: 14.44 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002518/0.3695, allocations: 213 kB / 0.5668 GB, free: 14.21 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.698e-05/0.3696, allocations: 37.83 kB / 0.5668 GB, free: 14.17 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001576/0.3697, allocations: 196.5 kB / 0.567 GB, free: 13.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.211e-05/0.3698, allocations: 91.17 kB / 0.5671 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/0.3699, allocations: 65.69 kB / 0.5672 GB, free: 13.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.3701, allocations: 338.8 kB / 0.5675 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001248/0.3702, allocations: 59.97 kB / 0.5675 GB, free: 13.42 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00026/0.3705, allocations: 207.6 kB / 0.5677 GB, free: 13.15 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003963/0.3709, allocations: 297.7 kB / 0.568 GB, free: 12.8 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.3709, allocations: 0 / 0.568 GB, free: 12.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005509/0.3714, allocations: 333.3 kB / 0.5683 GB, free: 12.46 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.3715, allocations: 6.656 kB / 0.5683 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.3715, allocations: 8 kB / 0.5684 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.203e-05/0.3715, allocations: 4 kB / 0.5684 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003183/0.3718, allocations: 87.89 kB / 0.5684 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.435e-05/0.3718, allocations: 11.94 kB / 0.5685 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001886/0.372, allocations: 35.72 kB / 0.5685 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.406e-05/0.372, allocations: 16 kB / 0.5685 GB, free: 12.3 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (44): * Single equations (assignments): 44 * 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.0001749/0.3722, allocations: 145.8 kB / 0.5686 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.3723, allocations: 35.81 kB / 0.5687 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002104/0.3726, allocations: 91.31 kB / 0.5688 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.3726, allocations: 4 kB / 0.5688 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.3726, allocations: 4.094 kB / 0.5688 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3726, allocations: 3.938 kB / 0.5688 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00066/0.3732, allocations: 288.5 kB / 0.5691 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.3732, allocations: 7.938 kB / 0.5691 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003464/0.3736, allocations: 67.91 kB / 0.5691 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.3736, allocations: 0 / 0.5691 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.493e-05/0.3736, allocations: 8.25 kB / 0.5691 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.13e-06/0.3736, allocations: 8 kB / 0.5691 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.3736, allocations: 4 kB / 0.5691 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006685/0.3743, allocations: 0.6373 MB / 0.5698 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.399e-05/0.3744, allocations: 27.73 kB / 0.5698 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.794e-05/0.3744, allocations: 12 kB / 0.5698 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002623/0.3747, allocations: 4 kB / 0.5698 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.316e-05/0.3747, allocations: 19.97 kB / 0.5698 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.3747, allocations: 7.984 kB / 0.5698 GB, free: 10.86 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001524/0.3749, allocations: 152.5 kB / 0.57 GB, free: 10.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3749, allocations: 0 / 0.57 GB, free: 10.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005731/0.3754, allocations: 83.83 kB / 0.5701 GB, free: 10.63 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 11 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * 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 (23): * Single equations (assignments): 23 * 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.0009736/0.3764, allocations: 1.179 MB / 0.5712 GB, free: 9.426 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004117/0.3768, allocations: 187.7 kB / 0.5714 GB, free: 9.242 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3768, allocations: 3.938 kB / 0.5714 GB, free: 9.238 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001207/0.3769, allocations: 63.92 kB / 0.5715 GB, free: 9.176 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008868/0.3778, allocations: 70.75 kB / 0.5715 GB, free: 9.113 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004855/0.3827, allocations: 3.59 MB / 0.575 GB, free: 5.309 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004891/0.3832, allocations: 0.7716 MB / 0.5758 GB, free: 4.512 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001534/0.3833, allocations: 30.95 kB / 0.5758 GB, free: 4.477 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001527/0.3835, allocations: 91.41 kB / 0.5759 GB, free: 4.387 MB / 414.1 MB Notification: Performance of SimCode: time 1.263e-06/0.3835, allocations: 0 / 0.5759 GB, free: 4.387 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03071/0.4142, allocations: 5.849 MB / 0.5816 GB, free: 14.7 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/11.98, allocations: 4.062 kB / 0.5816 GB, free: 14.7 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.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.406106950016692]