Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001375/0.001375, allocations: 100.3 kB / 19.69 MB, free: 1.805 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.001598/0.001598, allocations: 211.2 kB / 22.99 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.506/1.506, allocations: 207.7 MB / 233.8 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2277/0.2277, allocations: 44.26 MB / 330.4 MB, free: 9.312 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.002347/0.002347, allocations: 71.89 kB / 467.5 MB, free: 4.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1286, allocations: 61.05 MB / 0.5161 GB, free: 7.199 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004351/0.1329, allocations: 2.523 MB / 0.5186 GB, free: 4.66 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002362/0.1353, allocations: 0.9435 MB / 0.5195 GB, free: 3.707 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000234/0.1355, allocations: 7.938 kB / 0.5195 GB, free: 3.699 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002628/0.1358, allocations: 51.45 kB / 0.5196 GB, free: 3.648 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002547/0.136, allocations: 103.1 kB / 0.5197 GB, free: 3.547 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006448/0.1367, allocations: 147.6 kB / 0.5198 GB, free: 3.402 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000537/0.1372, allocations: 370.2 kB / 0.5202 GB, free: 3.039 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002127/0.1374, allocations: 69.53 kB / 0.5202 GB, free: 2.969 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001786/0.1376, allocations: 135.5 kB / 0.5204 GB, free: 2.836 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002278/0.1378, allocations: 131.3 kB / 0.5205 GB, free: 2.707 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.397e-05/0.1379, allocations: 24 kB / 0.5205 GB, free: 2.684 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001285/0.138, allocations: 43.98 kB / 0.5206 GB, free: 2.641 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.083e-05/0.1381, allocations: 67.75 kB / 0.5206 GB, free: 2.574 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001391/0.1382, allocations: 127.4 kB / 0.5207 GB, free: 2.449 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004951/0.1387, allocations: 362.5 kB / 0.5211 GB, free: 2.094 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.1387, allocations: 4 kB / 0.5211 GB, free: 2.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1387, allocations: 0 / 0.5211 GB, free: 2.09 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.1387, allocations: 0 / 0.5211 GB, free: 2.09 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001015/0.1397, allocations: 0.5363 MB / 0.5216 GB, free: 1.523 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.049e-05/0.1398, allocations: 12.03 kB / 0.5216 GB, free: 1.512 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.731e-05/0.1399, allocations: 66.72 kB / 0.5217 GB, free: 1.438 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002552/0.1402, allocations: 52.69 kB / 0.5217 GB, free: 1.387 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005039/0.1407, allocations: 202 kB / 0.5219 GB, free: 1.164 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.261e-05/0.1407, allocations: 29.03 kB / 0.522 GB, free: 1.137 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.893e-05/0.1408, allocations: 36.33 kB / 0.522 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006007/0.1414, allocations: 306.4 kB / 0.5223 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.87e-05/0.1414, allocations: 15.88 kB / 0.5223 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.865e-05/0.1414, allocations: 8 kB / 0.5223 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.572e-05/0.1415, allocations: 8 kB / 0.5223 GB, free: 0.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004393/0.1419, allocations: 171.8 kB / 0.5225 GB, free: 0.582 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002027/0.1439, allocations: 1.219 MB / 0.5237 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004101/0.1443, allocations: 233 kB / 0.5239 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.1444, allocations: 84.25 kB / 0.524 GB, free: 14.9 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.949e-05/0.1445, allocations: 4 kB / 0.524 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.434e-05/0.1445, allocations: 38.56 kB / 0.524 GB, free: 14.85 MB / 414.1 MB Notification: Performance of pre-optimization done (n=22): time 1.583e-06/0.1445, allocations: 0 / 0.524 GB, free: 14.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005064/0.145, allocations: 225.4 kB / 0.5242 GB, free: 14.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.617e-05/0.1451, allocations: 158.3 kB / 0.5244 GB, free: 14.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002129/0.1453, allocations: 220 kB / 0.5246 GB, free: 14.2 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.1453, allocations: 29.7 kB / 0.5246 GB, free: 14.17 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.1455, allocations: 192.4 kB / 0.5248 GB, free: 13.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.759e-05/0.1456, allocations: 99.17 kB / 0.5249 GB, free: 13.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.455e-05/0.1457, allocations: 61.7 kB / 0.525 GB, free: 13.81 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.1458, allocations: 330.8 kB / 0.5253 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001199/0.1459, allocations: 63.97 kB / 0.5253 GB, free: 13.42 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002305/0.1462, allocations: 205.9 kB / 0.5255 GB, free: 13.15 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004471/0.1466, allocations: 309.7 kB / 0.5258 GB, free: 12.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.1466, allocations: 0 / 0.5258 GB, free: 12.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004908/0.1471, allocations: 321.4 kB / 0.5261 GB, free: 12.46 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.1471, allocations: 8 kB / 0.5261 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.046e-06/0.1471, allocations: 4 kB / 0.5261 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.1471, allocations: 8 kB / 0.5261 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002929/0.1474, allocations: 91.92 kB / 0.5262 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.389e-05/0.1475, allocations: 11.94 kB / 0.5262 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001638/0.1476, allocations: 27.78 kB / 0.5263 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.73e-05/0.1476, allocations: 23.98 kB / 0.5263 GB, free: 12.29 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.0001527/0.1478, allocations: 145.7 kB / 0.5264 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.1479, allocations: 27.86 kB / 0.5265 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001887/0.1481, allocations: 91.11 kB / 0.5265 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.1481, allocations: 4 kB / 0.5266 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.1481, allocations: 256 / 0.5266 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.1481, allocations: 0 / 0.5266 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005869/0.1487, allocations: 272.5 kB / 0.5268 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1487, allocations: 0 / 0.5268 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003882/0.1491, allocations: 71.89 kB / 0.5269 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.1491, allocations: 0 / 0.5269 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.297e-05/0.1491, allocations: 8.562 kB / 0.5269 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.638e-06/0.1491, allocations: 4 kB / 0.5269 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.1491, allocations: 4 kB / 0.5269 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006041/0.1497, allocations: 0.6374 MB / 0.5275 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.111e-05/0.1498, allocations: 23.8 kB / 0.5275 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.789e-05/0.1498, allocations: 11.98 kB / 0.5276 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002446/0.15, allocations: 4 kB / 0.5276 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.185e-05/0.1501, allocations: 15.97 kB / 0.5276 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.1501, allocations: 4 kB / 0.5276 GB, free: 10.9 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001548/0.1502, allocations: 161.5 kB / 0.5277 GB, free: 10.75 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1502, allocations: 3.938 kB / 0.5277 GB, free: 10.74 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000515/0.1508, allocations: 79.84 kB / 0.5278 GB, free: 10.66 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.0009313/0.1517, allocations: 1.186 MB / 0.529 GB, free: 9.445 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003426/0.152, allocations: 175.7 kB / 0.5291 GB, free: 9.273 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.152, allocations: 0 / 0.5291 GB, free: 9.273 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001115/0.1521, allocations: 72.91 kB / 0.5292 GB, free: 9.203 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007904/0.1529, allocations: 69.31 kB / 0.5293 GB, free: 9.133 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004167/0.1571, allocations: 3.554 MB / 0.5327 GB, free: 5.371 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001914/0.1573, allocations: 169.1 kB / 0.5329 GB, free: 5.188 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001225/0.1574, allocations: 22.98 kB / 0.5329 GB, free: 5.164 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.1576, allocations: 95.39 kB / 0.533 GB, free: 5.07 MB / 414.1 MB Notification: Performance of SimCode: time 1.032e-06/0.1576, allocations: 0 / 0.533 GB, free: 5.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2481/0.4057, allocations: 6.091 MB / 0.539 GB, free: 28.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.85, allocations: 5.906 kB / 0.539 GB, free: 28.27 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 14.929523366969079]