Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000773/0.0007732, allocations: 99.48 kB / 17.01 MB, free: 6.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008335/0.0008334, allocations: 194 kB / 17.91 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.3 MB / 246 MB, free: 10.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2864/0.2864, allocations: 45.91 MB / 344.1 MB, free: 12.01 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002815/0.0002816, allocations: 4 kB / 418.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1374, allocations: 63.47 MB / 481.6 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003195/0.1406, allocations: 2.585 MB / 484.2 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002044/0.1427, allocations: 1.013 MB / 485.2 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001563/0.1429, allocations: 19.88 kB / 485.2 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001405/0.143, allocations: 39.62 kB / 485.3 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001813/0.1432, allocations: 103.2 kB / 485.4 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004184/0.1437, allocations: 139.7 kB / 485.5 MB, free: 1.336 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003978/0.1441, allocations: 417.9 kB / 485.9 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001712/0.1442, allocations: 86.14 kB / 486 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001553/0.1444, allocations: 143.4 kB / 486.2 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001967/0.1446, allocations: 151.3 kB / 486.3 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.52e-05/0.1446, allocations: 20 kB / 486.3 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001065/0.1448, allocations: 35.98 kB / 486.4 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.466e-05/0.1448, allocations: 63.75 kB / 486.4 MB, free: 444 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.25e-05/0.1449, allocations: 97.52 kB / 486.5 MB, free: 340 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002869/0.1452, allocations: 307.4 kB / 486.8 MB, free: 32 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1452, allocations: 0 / 486.8 MB, free: 32 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.1452, allocations: 0 / 486.8 MB, free: 32 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.1452, allocations: 3.938 kB / 486.8 MB, free: 28 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.0008538/0.1461, allocations: 0.6043 MB / 487.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.1461, allocations: 8.031 kB / 487.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.948e-05/0.1462, allocations: 70.53 kB / 487.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002786/0.1465, allocations: 59.52 kB / 487.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.1468, allocations: 291.3 kB / 487.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.122e-05/0.1469, allocations: 28.94 kB / 487.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.821e-05/0.1469, allocations: 36 kB / 487.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005561/0.1475, allocations: 359.6 kB / 488.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.544e-05/0.1475, allocations: 11.84 kB / 488.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.835e-05/0.1476, allocations: 16 kB / 488.3 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/0.1476, allocations: 8 kB / 488.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004255/0.148, allocations: 223.8 kB / 488.5 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002111/0.1501, allocations: 1.589 MB / 490.1 MB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005726/0.1507, allocations: 315.7 kB / 490.4 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001602/0.1509, allocations: 109 kB / 490.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/0.1509, allocations: 0 / 490.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/0.151, allocations: 42.56 kB / 490.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.202e-06/0.151, allocations: 3.938 kB / 490.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006659/0.1516, allocations: 273.2 kB / 490.8 MB, free: 11.69 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.1518, allocations: 187.9 kB / 491 MB, free: 11.46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002581/0.152, allocations: 246.5 kB / 491.3 MB, free: 11.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.354e-05/0.1521, allocations: 29.7 kB / 491.3 MB, free: 11.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001434/0.1522, allocations: 211.9 kB / 491.5 MB, free: 10.97 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.635e-05/0.1523, allocations: 110.6 kB / 491.6 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.691e-05/0.1523, allocations: 8 kB / 491.6 MB, free: 10.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.1525, allocations: 342.8 kB / 491.9 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.1526, allocations: 84.83 kB / 492 MB, free: 10.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002771/0.1529, allocations: 249.7 kB / 492.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002306/0.1532, allocations: 119.9 kB / 492.4 MB, free: 9.988 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.1532, allocations: 0 / 492.4 MB, free: 9.988 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006204/0.1538, allocations: 384.7 kB / 492.8 MB, free: 9.605 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.1538, allocations: 10.34 kB / 492.8 MB, free: 9.598 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.1539, allocations: 4.625 kB / 492.8 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.079e-05/0.1539, allocations: 16 kB / 492.8 MB, free: 9.578 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003599/0.1542, allocations: 99.83 kB / 492.9 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.627e-05/0.1543, allocations: 12.08 kB / 492.9 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002212/0.1545, allocations: 47.53 kB / 492.9 MB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.816e-05/0.1545, allocations: 20 kB / 493 MB, free: 9.402 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (52): * Single equations (assignments): 52 * 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.0001592/0.1547, allocations: 165.6 kB / 493.1 MB, free: 9.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.1548, allocations: 27.7 kB / 493.2 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002086/0.1551, allocations: 103.6 kB / 493.3 MB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.1551, allocations: 4 kB / 493.3 MB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.1551, allocations: 0 / 493.3 MB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.1551, allocations: 4 kB / 493.3 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006861/0.1558, allocations: 353.2 kB / 493.6 MB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.1558, allocations: 0 / 493.6 MB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003907/0.1562, allocations: 87.89 kB / 493.7 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.1562, allocations: 0 / 493.7 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.288e-05/0.1562, allocations: 8 kB / 493.7 MB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.1563, allocations: 4 kB / 493.7 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.1563, allocations: 7.938 kB / 493.7 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007195/0.157, allocations: 0.7728 MB / 494.5 MB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.382e-05/0.1571, allocations: 104.8 kB / 494.6 MB, free: 7.676 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.932e-05/0.1571, allocations: 8 kB / 494.6 MB, free: 7.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003038/0.1574, allocations: 12 kB / 494.6 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.206e-05/0.1575, allocations: 23.95 kB / 494.6 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.1575, allocations: 8 kB / 494.6 MB, free: 7.625 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001489/0.1577, allocations: 170 kB / 494.8 MB, free: 7.461 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1577, allocations: 0 / 494.8 MB, free: 7.461 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007107/0.1584, allocations: 103.7 kB / 494.9 MB, free: 7.359 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.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 (27): * Single equations (assignments): 27 * 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.001022/0.1594, allocations: 1.316 MB / 496.2 MB, free: 6.012 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004868/0.1599, allocations: 232.5 kB / 496.4 MB, free: 5.785 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.1599, allocations: 0 / 496.4 MB, free: 5.785 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001773/0.1601, allocations: 99.77 kB / 496.5 MB, free: 5.688 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009242/0.161, allocations: 80.64 kB / 496.6 MB, free: 5.613 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004109/0.1652, allocations: 2.719 MB / 499.3 MB, free: 2.746 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004195/0.1656, allocations: 0.7916 MB / 0.4884 GB, free: 1.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001743/0.1658, allocations: 34.91 kB / 0.4884 GB, free: 1.895 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/0.1659, allocations: 111.4 kB / 0.4886 GB, free: 1.789 MB / 366.1 MB Notification: Performance of SimCode: time 1.994e-06/0.1659, allocations: 0 / 0.4886 GB, free: 1.789 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0194/0.1854, allocations: 5.784 MB / 0.4942 GB, free: 12.14 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001743/0.1856, allocations: 181 kB / 0.4944 GB, free: 11.9 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.904/2.089, allocations: 0 / 0.4944 GB, free: 11.9 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.mat does not exist to compare? outputFormat=mat