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.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 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 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009871/0.000987, allocations: 96.83 kB / 15.68 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 175.4 kB / 16.56 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.927/1.927, allocations: 205.4 MB / 222.7 MB, free: 5.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4521/0.4521, allocations: 43.55 MB / 314.5 MB, free: 8.777 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006074/0.0006076, allocations: 12 kB / 384 MB, free: 7.953 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1529/0.1535, allocations: 58.86 MB / 442.8 MB, free: 12.99 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.002911/0.1565, allocations: 2.142 MB / 445 MB, free: 10.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001599/0.1581, allocations: 0.9403 MB / 445.9 MB, free: 9.891 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001486/0.1583, allocations: 4 kB / 445.9 MB, free: 9.887 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 7.652e-05/0.1584, allocations: 31.7 kB / 446 MB, free: 9.855 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002677/0.1587, allocations: 131.6 kB / 446.1 MB, free: 9.727 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004121/0.1591, allocations: 111.7 kB / 446.2 MB, free: 9.617 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003427/0.1595, allocations: 275.3 kB / 446.5 MB, free: 9.348 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001717/0.1596, allocations: 77.67 kB / 446.5 MB, free: 9.277 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001213/0.1598, allocations: 111.6 kB / 446.6 MB, free: 9.168 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000175/0.1599, allocations: 131.4 kB / 446.8 MB, free: 9.039 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.109e-05/0.16, allocations: 16 kB / 446.8 MB, free: 9.023 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001087/0.1601, allocations: 31.98 kB / 446.8 MB, free: 8.992 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.346e-05/0.1602, allocations: 47.84 kB / 446.9 MB, free: 8.945 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7e-05/0.1602, allocations: 81.52 kB / 446.9 MB, free: 8.859 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002744/0.1605, allocations: 263.5 kB / 447.2 MB, free: 8.602 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.1605, allocations: 0 / 447.2 MB, free: 8.602 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.1605, allocations: 0 / 447.2 MB, free: 8.602 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.1606, allocations: 0 / 447.2 MB, free: 8.602 MB / 382.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.000851/0.1614, allocations: 0.5496 MB / 447.8 MB, free: 8.004 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.1615, allocations: 8.031 kB / 447.8 MB, free: 7.996 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.513e-05/0.1615, allocations: 62.53 kB / 447.8 MB, free: 7.926 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002254/0.1618, allocations: 51.52 kB / 447.9 MB, free: 7.875 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/0.1621, allocations: 258.5 kB / 448.1 MB, free: 7.582 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.733e-05/0.1622, allocations: 24.66 kB / 448.1 MB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.753e-05/0.1622, allocations: 35.91 kB / 448.2 MB, free: 7.523 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004424/0.1627, allocations: 294.7 kB / 448.5 MB, free: 7.215 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.149e-05/0.1627, allocations: 4 kB / 448.5 MB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.4e-05/0.1627, allocations: 19.95 kB / 448.5 MB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.1628, allocations: 15.88 kB / 448.5 MB, free: 7.176 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003031/0.1631, allocations: 172.4 kB / 448.7 MB, free: 7.008 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.1649, allocations: 1.337 MB / 450 MB, free: 5.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003857/0.1653, allocations: 249.3 kB / 450.3 MB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.1654, allocations: 8 kB / 450.3 MB, free: 5.273 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/0.1654, allocations: 38.53 kB / 450.3 MB, free: 5.227 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 1.583e-06/0.1654, allocations: 0 / 450.3 MB, free: 5.227 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004785/0.1659, allocations: 213.2 kB / 450.5 MB, free: 5.012 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.365e-05/0.166, allocations: 158.2 kB / 450.7 MB, free: 4.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002102/0.1662, allocations: 216.3 kB / 450.9 MB, free: 4.594 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.976e-05/0.1662, allocations: 25.7 kB / 450.9 MB, free: 4.562 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.1663, allocations: 191.9 kB / 451.1 MB, free: 4.371 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.075e-05/0.1664, allocations: 98.83 kB / 451.2 MB, free: 4.273 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.07e-05/0.1664, allocations: 4 kB / 451.2 MB, free: 4.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.1666, allocations: 334.8 kB / 451.5 MB, free: 3.934 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001144/0.1667, allocations: 63.97 kB / 451.6 MB, free: 3.871 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002076/0.1669, allocations: 194.5 kB / 451.8 MB, free: 3.617 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001581/0.1671, allocations: 103.9 kB / 451.9 MB, free: 3.516 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.1671, allocations: 4 kB / 451.9 MB, free: 3.512 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004561/0.1676, allocations: 321.2 kB / 452.2 MB, free: 3.191 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.1676, allocations: 8 kB / 452.2 MB, free: 3.184 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.1676, allocations: 4 kB / 452.2 MB, free: 3.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.1676, allocations: 8.562 kB / 452.2 MB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002846/0.1679, allocations: 87.83 kB / 452.3 MB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/0.1679, allocations: 8 kB / 452.3 MB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000173/0.1681, allocations: 39.53 kB / 452.3 MB, free: 3.039 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.574e-05/0.1682, allocations: 24.3 kB / 452.4 MB, free: 3.016 MB / 382.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.0001467/0.1683, allocations: 153.8 kB / 452.5 MB, free: 2.855 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001017/0.1684, allocations: 19.77 kB / 452.5 MB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001795/0.1686, allocations: 91.08 kB / 452.6 MB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.844e-06/0.1686, allocations: 8.078 kB / 452.6 MB, free: 2.723 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.1686, allocations: 3.938 kB / 452.6 MB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.1687, allocations: 0 / 452.6 MB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005681/0.1692, allocations: 313.3 kB / 452.9 MB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1692, allocations: 0 / 452.9 MB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003091/0.1696, allocations: 67.91 kB / 453 MB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.01e-05/0.1696, allocations: 7.953 kB / 453 MB, free: 2.289 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.004e-05/0.1696, allocations: 8 kB / 453 MB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.1696, allocations: 4 kB / 453 MB, free: 2.277 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1696, allocations: 0 / 453 MB, free: 2.277 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005638/0.1702, allocations: 0.6794 MB / 453.7 MB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.153e-05/0.1703, allocations: 108.8 kB / 453.8 MB, free: 1.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.036e-05/0.1703, allocations: 12 kB / 453.8 MB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002466/0.1706, allocations: 4 kB / 453.8 MB, free: 1.414 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.723e-05/0.1706, allocations: 19.94 kB / 453.9 MB, free: 1.395 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.195e-05/0.1706, allocations: 12 kB / 453.9 MB, free: 1.383 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000135/0.1708, allocations: 153.6 kB / 454 MB, free: 1.234 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.1708, allocations: 0 / 454 MB, free: 1.234 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005296/0.1713, allocations: 75.84 kB / 454.1 MB, free: 1.16 MB / 382.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.2744/0.4458, allocations: 1.49 MB / 455.6 MB, free: 45.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004837/0.4463, allocations: 182.9 kB / 455.8 MB, free: 45.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.4463, allocations: 0 / 455.8 MB, free: 45.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.4464, allocations: 75.17 kB / 455.8 MB, free: 45.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007867/0.4472, allocations: 53.39 kB / 455.9 MB, free: 45.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003359/0.4506, allocations: 5.286 MB / 461.2 MB, free: 40.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002562/0.4509, allocations: 0.7809 MB / 461.9 MB, free: 40.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001431/0.451, allocations: 28.47 kB / 462 MB, free: 40.24 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.4512, allocations: 86.89 kB / 462.1 MB, free: 40.23 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4512, allocations: 4 kB / 462.1 MB, free: 40.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01548/0.4667, allocations: 4.836 MB / 466.9 MB, free: 39.77 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001677/0.4669, allocations: 167.1 kB / 467.1 MB, free: 39.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.727/2.194, allocations: 0 / 467.1 MB, free: 39.54 MB / 382.1 MB (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/linux/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 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat does not exist to compare? outputFormat=mat