Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002297/0.002296, allocations: 183.8 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.168/2.168, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001155/0.001155, allocations: 96.34 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5292/0.5292, allocations: 43.56 MB / 362.7 MB, free: 52.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005187/0.0005187, allocations: 16 kB / 431.5 MB, free: 6.074 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.1404, allocations: 58.84 MB / 490.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004/0.1444, allocations: 2.141 MB / 492.4 MB, free: 8.988 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002419/0.1469, allocations: 0.9403 MB / 493.4 MB, free: 8.039 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002595/0.1472, allocations: 11.94 kB / 493.4 MB, free: 8.027 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.569e-05/0.1473, allocations: 31.77 kB / 493.4 MB, free: 7.996 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000431/0.1478, allocations: 131.6 kB / 493.6 MB, free: 7.867 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006379/0.1484, allocations: 103.8 kB / 493.7 MB, free: 7.766 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005749/0.149, allocations: 275.3 kB / 493.9 MB, free: 7.496 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002383/0.1493, allocations: 73.67 kB / 494 MB, free: 7.426 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001893/0.1495, allocations: 111.6 kB / 494.1 MB, free: 7.316 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002596/0.1497, allocations: 131.4 kB / 494.2 MB, free: 7.188 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.61e-05/0.1498, allocations: 16 kB / 494.3 MB, free: 7.172 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001769/0.15, allocations: 39.97 kB / 494.3 MB, free: 7.133 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.034e-05/0.1501, allocations: 39.84 kB / 494.3 MB, free: 7.094 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001019/0.1502, allocations: 85.52 kB / 494.4 MB, free: 7.004 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004574/0.1506, allocations: 259.5 kB / 494.7 MB, free: 6.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.1507, allocations: 0 / 494.7 MB, free: 6.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1507, allocations: 0 / 494.7 MB, free: 6.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.1507, allocations: 4 kB / 494.7 MB, free: 6.746 MB / 378.7 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.001277/0.152, allocations: 0.5418 MB / 495.2 MB, free: 6.156 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.333e-05/0.152, allocations: 8.031 kB / 495.2 MB, free: 6.148 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001053/0.1522, allocations: 70.47 kB / 495.3 MB, free: 6.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003046/0.1525, allocations: 55.52 kB / 495.3 MB, free: 6.016 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004391/0.1529, allocations: 258.6 kB / 495.6 MB, free: 5.723 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.574e-05/0.153, allocations: 16.66 kB / 495.6 MB, free: 5.707 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.443e-05/0.1531, allocations: 39.91 kB / 495.6 MB, free: 5.668 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007114/0.1538, allocations: 294.7 kB / 495.9 MB, free: 5.359 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.19e-05/0.1538, allocations: 8 kB / 495.9 MB, free: 5.352 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.361e-05/0.1539, allocations: 19.95 kB / 496 MB, free: 5.332 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.486e-05/0.1539, allocations: 8 kB / 496 MB, free: 5.324 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005227/0.1545, allocations: 180.3 kB / 496.1 MB, free: 5.148 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002914/0.1574, allocations: 1.349 MB / 497.5 MB, free: 3.699 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006283/0.1581, allocations: 241.3 kB / 497.7 MB, free: 3.418 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.051e-05/0.1581, allocations: 8.094 kB / 497.7 MB, free: 3.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.16e-05/0.1582, allocations: 46.58 kB / 497.8 MB, free: 3.355 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 2.926e-06/0.1582, allocations: 0 / 497.8 MB, free: 3.355 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007321/0.1589, allocations: 209.2 kB / 498 MB, free: 3.145 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.159, allocations: 166.3 kB / 498.2 MB, free: 2.945 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002968/0.1594, allocations: 208.2 kB / 498.4 MB, free: 2.727 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.524e-05/0.1594, allocations: 29.7 kB / 498.4 MB, free: 2.691 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001796/0.1596, allocations: 246.3 kB / 498.6 MB, free: 2.449 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000145/0.1598, allocations: 94.73 kB / 498.7 MB, free: 2.355 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.98e-05/0.1598, allocations: 4 kB / 498.7 MB, free: 2.352 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.1599, allocations: 330.8 kB / 499 MB, free: 2.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000197/0.1602, allocations: 63.97 kB / 499.1 MB, free: 1.957 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003194/0.1605, allocations: 202.5 kB / 499.3 MB, free: 1.695 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000277/0.1608, allocations: 95.88 kB / 499.4 MB, free: 1.602 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.1608, allocations: 0 / 499.4 MB, free: 1.602 MB / 378.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007822/0.1616, allocations: 313.1 kB / 499.7 MB, free: 1.289 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.1616, allocations: 4 kB / 499.7 MB, free: 1.285 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.1616, allocations: 4 kB / 499.7 MB, free: 1.281 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.586e-05/0.1617, allocations: 8.094 kB / 499.7 MB, free: 1.273 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005621/0.1623, allocations: 91.78 kB / 499.8 MB, free: 1.184 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.12e-05/0.1623, allocations: 15.92 kB / 499.8 MB, free: 1.168 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003151/0.1626, allocations: 31.69 kB / 499.9 MB, free: 1.137 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.763e-05/0.1627, allocations: 16.38 kB / 499.9 MB, free: 1.121 MB / 378.7 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.0002394/0.1629, allocations: 157.7 kB / 0.4883 GB, free: 0.957 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/0.1631, allocations: 27.86 kB / 0.4883 GB, free: 0.9297 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002756/0.1634, allocations: 87.08 kB / 0.4884 GB, free: 0.832 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.1634, allocations: 4.562 kB / 0.4884 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.1634, allocations: 4 kB / 0.4884 GB, free: 0.8242 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.719e-06/0.1635, allocations: 3.984 kB / 0.4884 GB, free: 0.8203 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009095/0.1644, allocations: 309.4 kB / 0.4887 GB, free: 480 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.1644, allocations: 7.938 kB / 0.4887 GB, free: 472 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006888/0.1651, allocations: 59.97 kB / 0.4888 GB, free: 412 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.288e-05/0.1651, allocations: 7.953 kB / 0.4888 GB, free: 404 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.742e-05/0.1652, allocations: 11.98 kB / 0.4888 GB, free: 392 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.252e-06/0.1652, allocations: 0 / 0.4888 GB, free: 392 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/0.1652, allocations: 7.938 kB / 0.4888 GB, free: 384 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.446/0.6112, allocations: 0.6722 MB / 0.4895 GB, free: 42.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.6114, allocations: 95.97 kB / 0.4896 GB, free: 42.06 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.69e-05/0.6115, allocations: 8.234 kB / 0.4896 GB, free: 42.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006451/0.6121, allocations: 5.188 kB / 0.4896 GB, free: 42.06 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.932e-05/0.6122, allocations: 27.98 kB / 0.4896 GB, free: 42.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.324e-05/0.6123, allocations: 7.766 kB / 0.4896 GB, free: 42.06 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000258/0.6126, allocations: 147.6 kB / 0.4898 GB, free: 41.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.02e-07/0.6126, allocations: 0 / 0.4898 GB, free: 41.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001219/0.6138, allocations: 84.12 kB / 0.4898 GB, free: 41.98 MB / 378.7 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.001213/0.615, allocations: 1.497 MB / 0.4913 GB, free: 40.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007488/0.6158, allocations: 188.5 kB / 0.4915 GB, free: 40.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.6158, allocations: 0 / 0.4915 GB, free: 40.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002551/0.6161, allocations: 72.55 kB / 0.4915 GB, free: 40.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001246/0.6174, allocations: 51.45 kB / 0.4916 GB, free: 40.69 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007503/0.6249, allocations: 5.314 MB / 0.4968 GB, free: 36.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004619/0.6254, allocations: 0.7815 MB / 0.4975 GB, free: 35.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003547/0.6258, allocations: 91.44 kB / 0.4976 GB, free: 35.67 MB / 378.7 MB Notification: Performance of SimCode: time 1.503e-06/0.6258, allocations: 0 / 0.4976 GB, free: 35.67 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.454/3.079, allocations: 4.563 MB / 0.5021 GB, free: 35.29 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking_res.mat does not exist to compare? outputFormat=mat