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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009935/0.0009937, allocations: 93.92 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 186.9 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 223.2 MB / 241.8 MB, free: 396 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2076/0.2076, allocations: 44.23 MB / 337.1 MB, free: 2.91 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004197/0.0004197, allocations: 8 kB / 409.6 MB, free: 27.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1354, allocations: 61.92 MB / 471.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003012/0.1385, allocations: 2.139 MB / 473.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001471/0.14, allocations: 0.8927 MB / 474.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001348/0.1401, allocations: 11.94 kB / 474.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.973e-05/0.1402, allocations: 27.77 kB / 474.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002368/0.1405, allocations: 131.6 kB / 474.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004005/0.1409, allocations: 107.7 kB / 474.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003278/0.1412, allocations: 267.4 kB / 475.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001675/0.1414, allocations: 73.56 kB / 475.2 MB, free: 10 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001125/0.1415, allocations: 115.6 kB / 475.3 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000176/0.1417, allocations: 131.4 kB / 475.4 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.817e-05/0.1417, allocations: 12 kB / 475.4 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001057/0.1418, allocations: 31.98 kB / 475.5 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.407e-05/0.1419, allocations: 51.77 kB / 475.5 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.52e-05/0.142, allocations: 85.52 kB / 475.6 MB, free: 9.578 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002821/0.1422, allocations: 255.5 kB / 475.8 MB, free: 9.328 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.1423, allocations: 0 / 475.8 MB, free: 9.328 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1423, allocations: 0 / 475.8 MB, free: 9.328 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.1423, allocations: 7.938 kB / 475.8 MB, free: 9.32 MB / 350.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.0008266/0.1431, allocations: 0.5457 MB / 476.4 MB, free: 8.727 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.1432, allocations: 8.031 kB / 476.4 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.161e-05/0.1433, allocations: 70.53 kB / 476.5 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002084/0.1435, allocations: 47.61 kB / 476.5 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000278/0.1438, allocations: 267 kB / 476.8 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/0.1438, allocations: 20.66 kB / 476.8 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.909e-05/0.1439, allocations: 35.95 kB / 476.8 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004199/0.1443, allocations: 290.7 kB / 477.1 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/0.1443, allocations: 7.844 kB / 477.1 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.882e-05/0.1443, allocations: 20 kB / 477.1 MB, free: 7.906 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.1444, allocations: 8 kB / 477.2 MB, free: 7.898 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002838/0.1446, allocations: 176.4 kB / 477.3 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001749/0.1464, allocations: 1.341 MB / 478.7 MB, free: 6.281 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003814/0.1468, allocations: 245.3 kB / 478.9 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.072e-05/0.1468, allocations: 4 kB / 478.9 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.1469, allocations: 46.53 kB / 479 MB, free: 5.938 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.483e-06/0.1469, allocations: 0 / 479 MB, free: 5.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004728/0.1473, allocations: 213.4 kB / 479.2 MB, free: 5.723 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.966e-05/0.1474, allocations: 166.3 kB / 479.3 MB, free: 5.523 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000196/0.1476, allocations: 208.2 kB / 479.5 MB, free: 5.309 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.42e-05/0.1477, allocations: 29.7 kB / 479.6 MB, free: 5.273 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.1478, allocations: 184 kB / 479.7 MB, free: 5.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.068e-05/0.1479, allocations: 98.64 kB / 479.8 MB, free: 4.992 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.137e-05/0.1479, allocations: 4 kB / 479.8 MB, free: 4.988 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.148, allocations: 342.8 kB / 480.2 MB, free: 4.645 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.1481, allocations: 67.86 kB / 480.2 MB, free: 4.578 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001895/0.1483, allocations: 210.5 kB / 480.4 MB, free: 4.309 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/0.1485, allocations: 99.86 kB / 480.5 MB, free: 4.211 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.1485, allocations: 0 / 480.5 MB, free: 4.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004291/0.1489, allocations: 313 kB / 480.8 MB, free: 3.898 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.149, allocations: 8 kB / 480.9 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.149, allocations: 4 kB / 480.9 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.149, allocations: 8 kB / 480.9 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002764/0.1493, allocations: 91.83 kB / 481 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.386e-05/0.1493, allocations: 8 kB / 481 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001683/0.1495, allocations: 32.09 kB / 481 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.1495, allocations: 20 kB / 481 MB, free: 3.73 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001345/0.1497, allocations: 161.6 kB / 481.2 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/0.1498, allocations: 23.72 kB / 481.2 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001598/0.1499, allocations: 83.33 kB / 481.3 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.1499, allocations: 8 kB / 481.3 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.15, allocations: 0 / 481.3 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.15, allocations: 4 kB / 481.3 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005409/0.1505, allocations: 313.3 kB / 481.6 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.1505, allocations: 8 kB / 481.6 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003031/0.1508, allocations: 63.91 kB / 481.7 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.1508, allocations: 4 kB / 481.7 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/0.1509, allocations: 8.562 kB / 481.7 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.1509, allocations: 0 / 481.7 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1509, allocations: 0 / 481.7 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005348/0.1514, allocations: 0.6791 MB / 482.4 MB, free: 2.277 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.392e-05/0.1515, allocations: 100.8 kB / 482.5 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.062e-05/0.1515, allocations: 19.92 kB / 482.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002505/0.1518, allocations: 8 kB / 482.5 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.249e-05/0.1518, allocations: 15.98 kB / 482.5 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.1519, allocations: 4.109 kB / 482.5 MB, free: 2.113 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001144/0.152, allocations: 157.7 kB / 482.7 MB, free: 1.961 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.152, allocations: 0 / 482.7 MB, free: 1.961 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005102/0.1525, allocations: 79.84 kB / 482.7 MB, free: 1.883 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008566/0.1534, allocations: 1.494 MB / 484.2 MB, free: 356 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003104/0.1537, allocations: 183.5 kB / 484.4 MB, free: 172 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.1537, allocations: 4 kB / 484.4 MB, free: 168 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.666e-05/0.1538, allocations: 75.83 kB / 484.5 MB, free: 92 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005457/0.1544, allocations: 65.17 kB / 484.5 MB, free: 28 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004352/0.1587, allocations: 5.272 MB / 489.8 MB, free: 10.6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005154/0.1593, allocations: 0.7833 MB / 490.6 MB, free: 9.789 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001769/0.1595, allocations: 30.95 kB / 490.6 MB, free: 9.762 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001263/0.1596, allocations: 91.41 kB / 490.7 MB, free: 9.672 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1596, allocations: 0 / 490.7 MB, free: 9.672 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01594/0.1755, allocations: 4.835 MB / 495.6 MB, free: 4.973 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001728/0.1758, allocations: 174.4 kB / 495.7 MB, free: 4.727 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.74/1.916, allocations: 0 / 495.7 MB, free: 4.727 MB / 366.1 MB (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/linux/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 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat does not exist to compare? outputFormat=mat