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.001109/0.001109, allocations: 97.44 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001388/0.001388, allocations: 207.2 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.3 MB / 245.9 MB, free: 12.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2196/0.2196, allocations: 45.91 MB / 344 MB, free: 12.33 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003179/0.000318, allocations: 4 kB / 418 MB, free: 20.8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.162/0.1624, allocations: 63.47 MB / 481.5 MB, free: 5.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.00294/0.1654, allocations: 2.425 MB / 483.9 MB, free: 2.875 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.167, allocations: 1.018 MB / 485 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001514/0.1672, allocations: 7.938 kB / 485 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.499e-05/0.1673, allocations: 35.7 kB / 485 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002883/0.1676, allocations: 159.5 kB / 485.2 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004573/0.168, allocations: 127.7 kB / 485.3 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004112/0.1684, allocations: 323.3 kB / 485.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002071/0.1687, allocations: 98.11 kB / 485.7 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001718/0.1688, allocations: 139.5 kB / 485.8 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002426/0.1691, allocations: 155.3 kB / 486 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.466e-05/0.1691, allocations: 16 kB / 486 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001332/0.1693, allocations: 43.92 kB / 486 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.662e-05/0.1693, allocations: 55.75 kB / 486.1 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.114e-05/0.1694, allocations: 97.52 kB / 486.2 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003178/0.1698, allocations: 303.4 kB / 486.5 MB, free: 324 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1698, allocations: 0 / 486.5 MB, free: 324 kB / 350.1 MB Notification: Performance of FrontEnd: time 4.548e-06/0.1698, allocations: 0 / 486.5 MB, free: 324 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.1698, allocations: 7.938 kB / 486.5 MB, free: 316 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.0009431/0.1708, allocations: 0.5926 MB / 487.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.1708, allocations: 8.031 kB / 487.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.233e-05/0.1709, allocations: 74.53 kB / 487.2 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002975/0.1712, allocations: 71.5 kB / 487.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003358/0.1715, allocations: 287.3 kB / 487.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.403e-05/0.1716, allocations: 25 kB / 487.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.851e-05/0.1717, allocations: 36 kB / 487.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005471/0.1722, allocations: 363.6 kB / 487.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.822e-05/0.1722, allocations: 15.83 kB / 487.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.982e-05/0.1723, allocations: 16 kB / 488 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.1723, allocations: 8 kB / 488 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000408/0.1727, allocations: 215.8 kB / 488.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002018/0.1747, allocations: 1.589 MB / 489.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005577/0.1753, allocations: 323.9 kB / 490.1 MB, free: 12.42 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.292e-05/0.1753, allocations: 4 kB / 490.1 MB, free: 12.42 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/0.1754, allocations: 46.59 kB / 490.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 3.216e-06/0.1754, allocations: 0 / 490.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006451/0.1761, allocations: 273.8 kB / 490.4 MB, free: 12.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.1762, allocations: 183.9 kB / 490.6 MB, free: 11.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002425/0.1764, allocations: 242.6 kB / 490.8 MB, free: 11.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.902e-05/0.1765, allocations: 37.64 kB / 490.9 MB, free: 11.58 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/0.1766, allocations: 211.8 kB / 491.1 MB, free: 11.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.1767, allocations: 106.6 kB / 491.2 MB, free: 11.26 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.831e-05/0.1767, allocations: 12 kB / 491.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.1769, allocations: 338.8 kB / 491.5 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001747/0.1771, allocations: 84.84 kB / 491.6 MB, free: 10.83 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002604/0.1774, allocations: 245.8 kB / 491.8 MB, free: 10.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002207/0.1776, allocations: 123.8 kB / 492 MB, free: 10.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.1776, allocations: 0 / 492 MB, free: 10.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000595/0.1782, allocations: 397.2 kB / 492.3 MB, free: 9.996 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.1782, allocations: 11.98 kB / 492.4 MB, free: 9.984 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.1783, allocations: 4 kB / 492.4 MB, free: 9.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.1783, allocations: 12 kB / 492.4 MB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003316/0.1786, allocations: 99.89 kB / 492.5 MB, free: 9.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.72e-05/0.1787, allocations: 11.94 kB / 492.5 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002082/0.1789, allocations: 43.58 kB / 492.5 MB, free: 9.816 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.577e-05/0.1789, allocations: 20 kB / 492.5 MB, free: 9.797 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.0001607/0.1791, allocations: 169.7 kB / 492.7 MB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/0.1792, allocations: 27.66 kB / 492.7 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000174/0.1794, allocations: 91.39 kB / 492.8 MB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.1794, allocations: 7.938 kB / 492.8 MB, free: 9.496 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.1794, allocations: 3.984 kB / 492.8 MB, free: 9.492 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.1794, allocations: 4 kB / 492.8 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006377/0.18, allocations: 349.2 kB / 493.2 MB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.1801, allocations: 3.953 kB / 493.2 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003861/0.1805, allocations: 79.97 kB / 493.3 MB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.1805, allocations: 4 kB / 493.3 MB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.502e-05/0.1805, allocations: 11.98 kB / 493.3 MB, free: 9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.137e-06/0.1805, allocations: 7.938 kB / 493.3 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.1805, allocations: 320 / 493.3 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007801/0.1813, allocations: 0.8228 MB / 494.1 MB, free: 8.113 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.104e-05/0.1814, allocations: 116.7 kB / 494.2 MB, free: 7.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.529e-05/0.1814, allocations: 8 kB / 494.2 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003042/0.1817, allocations: 15.92 kB / 494.2 MB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.062e-05/0.1818, allocations: 15.98 kB / 494.3 MB, free: 7.941 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.571e-05/0.1818, allocations: 11.98 kB / 494.3 MB, free: 7.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001575/0.182, allocations: 166 kB / 494.4 MB, free: 7.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.182, allocations: 0 / 494.4 MB, free: 7.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005983/0.1826, allocations: 103.7 kB / 494.5 MB, free: 7.668 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.001182/0.1838, allocations: 1.715 MB / 496.3 MB, free: 5.902 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004202/0.1842, allocations: 235.9 kB / 496.5 MB, free: 5.672 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1842, allocations: 0 / 496.5 MB, free: 5.672 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001632/0.1844, allocations: 101.1 kB / 496.6 MB, free: 5.574 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006308/0.185, allocations: 67.17 kB / 496.6 MB, free: 5.512 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005464/0.1905, allocations: 6.307 MB / 0.4912 GB, free: 15.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004159/0.1909, allocations: 0.7994 MB / 0.4919 GB, free: 14.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001765/0.1911, allocations: 38.95 kB / 0.492 GB, free: 14.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001595/0.1913, allocations: 115.4 kB / 0.4921 GB, free: 14.05 MB / 382.1 MB Notification: Performance of SimCode: time 8.01e-07/0.1913, allocations: 0 / 0.4921 GB, free: 14.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01702/0.2083, allocations: 5.767 MB / 0.4977 GB, free: 8.426 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001738/0.2085, allocations: 168.2 kB / 0.4979 GB, free: 8.188 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.815/2.023, allocations: 0 / 0.4979 GB, free: 8.188 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