Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001456/0.001456, allocations: 109 kB / 18.49 MB, free: 4.602 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.001521/0.001521, allocations: 213.4 kB / 21.45 MB, free: 1.652 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.528/1.528, allocations: 230.6 MB / 254.8 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2487/0.2487, allocations: 46.92 MB / 357.8 MB, free: 10.3 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Rotational_TestBraking",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_TestBraking",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002073/0.002073, allocations: 59.91 kB / 0.4916 GB, free: 7.977 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1417, allocations: 66 MB / 0.556 GB, free: 5.852 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004661/0.1463, allocations: 3.038 MB / 0.559 GB, free: 2.793 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002127/0.1485, allocations: 1.087 MB / 0.5601 GB, free: 1.703 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003007/0.1488, allocations: 7.938 kB / 0.5601 GB, free: 1.695 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002321/0.149, allocations: 63.31 kB / 0.5601 GB, free: 1.633 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000387/0.1494, allocations: 122.9 kB / 0.5603 GB, free: 1.512 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006141/0.15, allocations: 167.6 kB / 0.5604 GB, free: 1.348 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000631/0.1506, allocations: 461.8 kB / 0.5609 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002223/0.1509, allocations: 83.58 kB / 0.5609 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002514/0.1511, allocations: 163.4 kB / 0.5611 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002759/0.1514, allocations: 183.1 kB / 0.5613 GB, free: 476 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.829e-05/0.1514, allocations: 28 kB / 0.5613 GB, free: 448 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001586/0.1516, allocations: 51.98 kB / 0.5613 GB, free: 396 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.912e-05/0.1517, allocations: 79.7 kB / 0.5614 GB, free: 316 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00021/0.1519, allocations: 195 kB / 0.5616 GB, free: 120 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006289/0.1525, allocations: 446.1 kB / 0.562 GB, free: 15.68 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.1525, allocations: 0 / 0.562 GB, free: 15.68 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1525, allocations: 3.938 kB / 0.562 GB, free: 15.68 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.273e-05/0.1525, allocations: 0 / 0.562 GB, free: 15.68 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001151/0.1537, allocations: 0.6664 MB / 0.5627 GB, free: 14.96 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.1537, allocations: 8.031 kB / 0.5627 GB, free: 14.95 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.552e-05/0.1537, allocations: 9.188 kB / 0.5627 GB, free: 14.95 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.717e-05/0.1538, allocations: 74.72 kB / 0.5628 GB, free: 14.86 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003127/0.1541, allocations: 68.62 kB / 0.5628 GB, free: 14.8 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000452/0.1546, allocations: 299.5 kB / 0.5631 GB, free: 14.46 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.021e-05/0.1546, allocations: 25.38 kB / 0.5632 GB, free: 14.44 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.224e-05/0.1547, allocations: 43.89 kB / 0.5632 GB, free: 14.4 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006829/0.1554, allocations: 359.6 kB / 0.5635 GB, free: 14.02 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.973e-05/0.1554, allocations: 8 kB / 0.5635 GB, free: 14.01 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.492e-05/0.1554, allocations: 16 kB / 0.5636 GB, free: 14 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.1555, allocations: 8 kB / 0.5636 GB, free: 13.99 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005021/0.156, allocations: 223.8 kB / 0.5638 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002682/0.1586, allocations: 1.589 MB / 0.5653 GB, free: 12.07 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006572/0.1593, allocations: 299.6 kB / 0.5656 GB, free: 11.72 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001795/0.1595, allocations: 97.17 kB / 0.5657 GB, free: 11.61 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.1595, allocations: 4 kB / 0.5657 GB, free: 11.6 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.313e-05/0.1595, allocations: 42.5 kB / 0.5658 GB, free: 11.55 MB / 430.1 MB Notification: Performance of pre-optimization done (n=26): time 2.655e-06/0.1596, allocations: 4 kB / 0.5658 GB, free: 11.55 MB / 430.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007701/0.1603, allocations: 273.3 kB / 0.566 GB, free: 11.27 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001201/0.1604, allocations: 183.9 kB / 0.5662 GB, free: 11.05 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002989/0.1607, allocations: 242.6 kB / 0.5664 GB, free: 10.8 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.1608, allocations: 29.7 kB / 0.5665 GB, free: 10.77 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001771/0.1609, allocations: 216.3 kB / 0.5667 GB, free: 10.55 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/0.1611, allocations: 123.1 kB / 0.5668 GB, free: 10.43 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.1612, allocations: 78.09 kB / 0.5669 GB, free: 10.34 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.1614, allocations: 342.7 kB / 0.5672 GB, free: 10 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.1616, allocations: 80.84 kB / 0.5673 GB, free: 9.922 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003243/0.1619, allocations: 255.9 kB / 0.5675 GB, free: 9.598 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005504/0.1624, allocations: 357 kB / 0.5678 GB, free: 9.172 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.1625, allocations: 0 / 0.5678 GB, free: 9.172 MB / 430.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007874/0.1632, allocations: 392.8 kB / 0.5682 GB, free: 8.781 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/0.1633, allocations: 8 kB / 0.5682 GB, free: 8.773 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.1633, allocations: 4.625 kB / 0.5682 GB, free: 8.77 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.621e-05/0.1633, allocations: 8.75 kB / 0.5682 GB, free: 8.762 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003805/0.1637, allocations: 111.8 kB / 0.5683 GB, free: 8.652 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.888e-05/0.1637, allocations: 11.94 kB / 0.5684 GB, free: 8.641 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002496/0.1639, allocations: 43.72 kB / 0.5684 GB, free: 8.598 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.103e-05/0.164, allocations: 20 kB / 0.5684 GB, free: 8.578 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (52): * Single equations (assignments): 52 * 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.0002844/0.1643, allocations: 157.6 kB / 0.5686 GB, free: 8.414 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002059/0.1645, allocations: 31.81 kB / 0.5686 GB, free: 8.383 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002384/0.1647, allocations: 91.39 kB / 0.5687 GB, free: 8.285 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.1647, allocations: 8 kB / 0.5687 GB, free: 8.277 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.1647, allocations: 3.984 kB / 0.5687 GB, free: 8.273 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.1647, allocations: 7.984 kB / 0.5687 GB, free: 8.266 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007937/0.1655, allocations: 353.3 kB / 0.569 GB, free: 7.871 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1655, allocations: 0 / 0.569 GB, free: 7.871 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000423/0.166, allocations: 79.91 kB / 0.5691 GB, free: 7.793 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.166, allocations: 4 kB / 0.5691 GB, free: 7.789 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.733e-05/0.166, allocations: 11.98 kB / 0.5691 GB, free: 7.777 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.166, allocations: 320 / 0.5691 GB, free: 7.777 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.166, allocations: 7.938 kB / 0.5691 GB, free: 7.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008568/0.1669, allocations: 0.7726 MB / 0.5699 GB, free: 6.977 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.77e-05/0.1669, allocations: 100.9 kB / 0.57 GB, free: 6.859 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.313e-05/0.167, allocations: 8 kB / 0.57 GB, free: 6.852 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000328/0.1673, allocations: 15.98 kB / 0.57 GB, free: 6.836 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.19e-05/0.1674, allocations: 19.86 kB / 0.57 GB, free: 6.816 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.999e-05/0.1674, allocations: 15.98 kB / 0.57 GB, free: 6.801 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001753/0.1676, allocations: 170 kB / 0.5702 GB, free: 6.637 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1676, allocations: 0 / 0.5702 GB, free: 6.637 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006313/0.1682, allocations: 91.84 kB / 0.5703 GB, free: 6.547 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.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 (27): * Single equations (assignments): 27 * 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.001199/0.1694, allocations: 1.311 MB / 0.5716 GB, free: 5.207 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005072/0.1699, allocations: 228.5 kB / 0.5718 GB, free: 4.984 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1699, allocations: 0 / 0.5718 GB, free: 4.984 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001879/0.1701, allocations: 93.08 kB / 0.5719 GB, free: 4.895 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001006/0.1711, allocations: 77.77 kB / 0.572 GB, free: 4.824 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005718/0.1768, allocations: 4.09 MB / 0.576 GB, free: 492 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005025/0.1773, allocations: 0.7912 MB / 0.5767 GB, free: 15.66 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001576/0.1775, allocations: 34.95 kB / 0.5768 GB, free: 15.63 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001555/0.1776, allocations: 111.6 kB / 0.5769 GB, free: 15.52 MB / 446.1 MB Notification: Performance of SimCode: time 8.71e-07/0.1776, allocations: 3.938 kB / 0.5769 GB, free: 15.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02579/0.2034, allocations: 6.504 MB / 0.5832 GB, free: 9.137 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.033/9.237, allocations: 11.28 kB / 0.5832 GB, free: 9.129 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.000399521 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 12.771736248978414]