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.0007805/0.0007805, allocations: 98.77 kB / 17 MB, free: 6.402 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.0007677/0.0007678, allocations: 178.2 kB / 17.89 MB, free: 5.945 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.398/1.398, allocations: 223.2 MB / 241.9 MB, free: 236 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.2194/0.2194, allocations: 44.23 MB / 337.2 MB, free: 2.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003744/0.0003745, allocations: 8 kB / 409.7 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1256, allocations: 61.92 MB / 471.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.002922/0.1285, allocations: 2.271 MB / 473.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001564/0.1301, allocations: 0.9041 MB / 474.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001762/0.1303, allocations: 8 kB / 474.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001526/0.1305, allocations: 35.7 kB / 474.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001822/0.1307, allocations: 91.22 kB / 474.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004498/0.1312, allocations: 115.7 kB / 475.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003958/0.1316, allocations: 346.3 kB / 475.4 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001822/0.1318, allocations: 73.53 kB / 475.5 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000126/0.1319, allocations: 115.5 kB / 475.6 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001972/0.1321, allocations: 123.5 kB / 475.7 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.257e-05/0.1321, allocations: 16 kB / 475.7 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001052/0.1323, allocations: 35.98 kB / 475.8 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.726e-05/0.1323, allocations: 51.75 kB / 475.8 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.478e-05/0.1324, allocations: 85.52 kB / 475.9 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000278/0.1327, allocations: 259.5 kB / 476.1 MB, free: 9.109 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1327, allocations: 0 / 476.1 MB, free: 9.109 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.1327, allocations: 0 / 476.1 MB, free: 9.109 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.1327, allocations: 0 / 476.1 MB, free: 9.109 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.0008587/0.1336, allocations: 0.5419 MB / 476.7 MB, free: 8.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.804e-05/0.1336, allocations: 15.97 kB / 476.7 MB, free: 8.504 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001071/0.1338, allocations: 70.47 kB / 476.8 MB, free: 8.426 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002852/0.134, allocations: 47.61 kB / 476.8 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005841/0.1346, allocations: 259 kB / 477.1 MB, free: 8.086 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.5e-05/0.1347, allocations: 28.59 kB / 477.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.581e-05/0.1348, allocations: 35.95 kB / 477.1 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006195/0.1354, allocations: 294.7 kB / 477.4 MB, free: 7.715 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.073e-05/0.1354, allocations: 7.891 kB / 477.4 MB, free: 7.707 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.1355, allocations: 12 kB / 477.4 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.586e-05/0.1355, allocations: 8 kB / 477.4 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000361/0.1359, allocations: 176.3 kB / 477.6 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002435/0.1383, allocations: 1.345 MB / 479 MB, free: 6.066 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005328/0.1389, allocations: 249.1 kB / 479.2 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001129/0.139, allocations: 76.28 kB / 479.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.139, allocations: 8 kB / 479.3 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/0.1391, allocations: 38.5 kB / 479.3 MB, free: 5.633 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.873e-06/0.1391, allocations: 4 kB / 479.3 MB, free: 5.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005911/0.1397, allocations: 209.8 kB / 479.5 MB, free: 5.418 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.1398, allocations: 158.4 kB / 479.7 MB, free: 5.227 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002584/0.1401, allocations: 212.3 kB / 479.9 MB, free: 5.008 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.6e-05/0.1401, allocations: 29.7 kB / 479.9 MB, free: 4.973 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000152/0.1403, allocations: 195.9 kB / 480.1 MB, free: 4.777 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.02e-05/0.1403, allocations: 94.66 kB / 480.2 MB, free: 4.684 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.308e-05/0.1404, allocations: 7.938 kB / 480.2 MB, free: 4.676 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001938/0.1406, allocations: 338.8 kB / 480.5 MB, free: 4.336 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.1407, allocations: 67.92 kB / 480.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002162/0.1409, allocations: 202.5 kB / 480.8 MB, free: 4.008 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002107/0.1411, allocations: 99.92 kB / 480.9 MB, free: 3.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.1411, allocations: 0 / 480.9 MB, free: 3.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004994/0.1416, allocations: 313.3 kB / 481.2 MB, free: 3.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.1417, allocations: 10.5 kB / 481.2 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.1417, allocations: 4 kB / 481.2 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.126e-05/0.1417, allocations: 8 kB / 481.2 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003564/0.1421, allocations: 91.83 kB / 481.3 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.585e-05/0.1421, allocations: 8 kB / 481.3 MB, free: 3.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001748/0.1423, allocations: 35.62 kB / 481.4 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.392e-05/0.1423, allocations: 16 kB / 481.4 MB, free: 3.43 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.0001743/0.1425, allocations: 165.7 kB / 481.5 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.1426, allocations: 23.91 kB / 481.6 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001803/0.1428, allocations: 91.06 kB / 481.7 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.291e-06/0.1428, allocations: 4 kB / 481.7 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.1428, allocations: 0 / 481.7 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.1428, allocations: 4 kB / 481.7 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005778/0.1434, allocations: 313.3 kB / 482 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.1434, allocations: 7.984 kB / 482 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003093/0.1437, allocations: 63.91 kB / 482 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.677e-06/0.1438, allocations: 4 kB / 482 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.018e-05/0.1438, allocations: 12 kB / 482.1 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.1438, allocations: 0 / 482.1 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.1438, allocations: 0 / 482.1 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005907/0.1444, allocations: 0.6333 MB / 482.7 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.18e-05/0.1445, allocations: 104.8 kB / 482.8 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.788e-05/0.1445, allocations: 8 kB / 482.8 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002394/0.1448, allocations: 8.094 kB / 482.8 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.602e-05/0.1448, allocations: 19.91 kB / 482.8 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.1448, allocations: 8 kB / 482.8 MB, free: 1.871 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001557/0.145, allocations: 141.9 kB / 483 MB, free: 1.734 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.145, allocations: 0 / 483 MB, free: 1.734 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005419/0.1456, allocations: 79.84 kB / 483.1 MB, free: 1.656 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.0008206/0.1464, allocations: 1.177 MB / 484.2 MB, free: 464 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003748/0.1468, allocations: 191.6 kB / 484.4 MB, free: 272 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1468, allocations: 3.938 kB / 484.4 MB, free: 268 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001207/0.1469, allocations: 76.16 kB / 484.5 MB, free: 192 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008499/0.1478, allocations: 57.77 kB / 484.6 MB, free: 132 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003624/0.1514, allocations: 2.275 MB / 486.8 MB, free: 13.72 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004111/0.1518, allocations: 0.7716 MB / 487.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001384/0.152, allocations: 30.97 kB / 487.6 MB, free: 12.9 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001526/0.1521, allocations: 87.59 kB / 487.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1521, allocations: 0 / 487.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01637/0.1685, allocations: 4.859 MB / 492.6 MB, free: 8.094 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001961/0.1688, allocations: 177.6 kB / 492.7 MB, free: 7.852 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.851/2.02, allocations: 0 / 492.7 MB, free: 7.852 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