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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.0009916/0.0009915, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 225.6 MB / 234.8 MB, free: 3.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009455/0.0009455, allocations: 98.92 kB / 286.7 MB, free: 5.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2111/0.2111, allocations: 45.15 MB / 383.8 MB, free: 252 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.833e-05/1.835e-05, allocations: 0 / 453.3 MB, free: 75.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1119, allocations: 63.25 MB / 0.5044 GB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3869/0.4989, allocations: 91.63 MB / 0.5939 GB, free: 10.6 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002119/0.4992, allocations: 66.34 kB / 0.594 GB, free: 10.57 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.021/0.5202, allocations: 7.869 MB / 0.6017 GB, free: 4.133 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.5203, allocations: 0 / 0.6017 GB, free: 4.133 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.415e-05/0.5203, allocations: 8 kB / 0.6017 GB, free: 4.125 MB / 394.7 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.0008355/0.5211, allocations: 0.574 MB / 0.6022 GB, free: 3.527 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/0.5212, allocations: 12.03 kB / 0.6022 GB, free: 3.516 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003071/0.5215, allocations: 67.44 kB / 0.6023 GB, free: 3.449 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003317/0.5219, allocations: 272.9 kB / 0.6026 GB, free: 3.16 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.096e-05/0.5219, allocations: 12 kB / 0.6026 GB, free: 3.148 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.073e-05/0.522, allocations: 39.27 kB / 0.6026 GB, free: 3.113 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003389/0.5223, allocations: 171.8 kB / 0.6028 GB, free: 3.004 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004393/0.5228, allocations: 293.3 kB / 0.6031 GB, free: 2.758 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.633e-05/0.5228, allocations: 11.91 kB / 0.6031 GB, free: 2.746 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.349e-05/0.5228, allocations: 0 / 0.6031 GB, free: 2.746 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.5228, allocations: 8 kB / 0.6031 GB, free: 2.738 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001961/0.5248, allocations: 1.519 MB / 0.6046 GB, free: 1.301 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003808/0.5252, allocations: 271.2 kB / 0.6048 GB, free: 1.031 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.5253, allocations: 82.47 kB / 0.6049 GB, free: 0.9531 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.315e-05/0.5253, allocations: 7.938 kB / 0.6049 GB, free: 0.9453 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.5254, allocations: 42.53 kB / 0.605 GB, free: 0.8984 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 1.503e-06/0.5254, allocations: 0 / 0.605 GB, free: 0.8984 MB / 394.7 MB Notification: Performance of matching and sorting (n=26): time 0.0004042/0.5258, allocations: 177.9 kB / 0.6051 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.205e-05/0.5259, allocations: 183.9 kB / 0.6053 GB, free: 0.5234 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001673/0.5261, allocations: 192.8 kB / 0.6055 GB, free: 368 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.5261, allocations: 29.64 kB / 0.6055 GB, free: 332 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.5263, allocations: 218 kB / 0.6057 GB, free: 140 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.929e-05/0.5263, allocations: 106.2 kB / 0.6058 GB, free: 48 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.14e-05/0.5264, allocations: 0 / 0.6058 GB, free: 48 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.5265, allocations: 335 kB / 0.6061 GB, free: 15.72 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.5266, allocations: 66.62 kB / 0.6062 GB, free: 15.68 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000203/0.5268, allocations: 234.5 kB / 0.6064 GB, free: 15.42 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000161/0.527, allocations: 108.5 kB / 0.6065 GB, free: 15.34 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.527, allocations: 0 / 0.6065 GB, free: 15.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0004591/0.5275, allocations: 323.1 kB / 0.6068 GB, free: 15.08 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.5275, allocations: 11.98 kB / 0.6068 GB, free: 15.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.5275, allocations: 4 kB / 0.6069 GB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.5275, allocations: 8 kB / 0.6069 GB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003547/0.5279, allocations: 112.2 kB / 0.607 GB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.293e-05/0.5279, allocations: 11.94 kB / 0.607 GB, free: 14.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002112/0.5281, allocations: 43.61 kB / 0.607 GB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.593e-05/0.5282, allocations: 19.75 kB / 0.607 GB, free: 14.88 MB / 410.7 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 () * 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.0001068/0.5283, allocations: 120.5 kB / 0.6072 GB, free: 14.76 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003474/0.5286, allocations: 190.2 kB / 0.6073 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001248/0.5288, allocations: 27.62 kB / 0.6074 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001634/0.5289, allocations: 81.2 kB / 0.6074 GB, free: 14.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.529, allocations: 8.031 kB / 0.6074 GB, free: 14.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.529, allocations: 4 kB / 0.6075 GB, free: 14.49 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.529, allocations: 3.984 kB / 0.6075 GB, free: 14.49 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005864/0.5296, allocations: 288.4 kB / 0.6077 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.5296, allocations: 0 / 0.6077 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003942/0.53, allocations: 83.84 kB / 0.6078 GB, free: 14.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.53, allocations: 4 kB / 0.6078 GB, free: 14.13 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.336e-05/0.53, allocations: 11.61 kB / 0.6078 GB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.5301, allocations: 4 kB / 0.6078 GB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.5301, allocations: 3.938 kB / 0.6078 GB, free: 14.11 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005931/0.5307, allocations: 0.7827 MB / 0.6086 GB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.26e-05/0.5307, allocations: 100.8 kB / 0.6087 GB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.239e-05/0.5308, allocations: 12.25 kB / 0.6087 GB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002892/0.5311, allocations: 8 kB / 0.6087 GB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.306e-05/0.5312, allocations: 27.47 kB / 0.6087 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/0.5312, allocations: 11.06 kB / 0.6087 GB, free: 13.18 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001049/0.5313, allocations: 153.2 kB / 0.6089 GB, free: 13.05 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5313, allocations: 0 / 0.6089 GB, free: 13.05 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005513/0.5318, allocations: 87.69 kB / 0.609 GB, free: 12.96 MB / 410.7 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,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T,inertia6.w,inverseSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete 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.001036/0.5329, allocations: 1.667 MB / 0.6106 GB, free: 11.31 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003127/0.5332, allocations: 195.9 kB / 0.6108 GB, free: 11.17 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.5332, allocations: 0 / 0.6108 GB, free: 11.17 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.5333, allocations: 86.03 kB / 0.6109 GB, free: 11.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006433/0.534, allocations: 60.06 kB / 0.6109 GB, free: 11.06 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002088/0.5361, allocations: 1.281 MB / 0.6122 GB, free: 9.762 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003928/0.5365, allocations: 0.7991 MB / 0.613 GB, free: 8.938 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000155/0.5367, allocations: 39.27 kB / 0.613 GB, free: 8.898 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.5368, allocations: 111.5 kB / 0.6131 GB, free: 8.863 MB / 410.7 MB Notification: Performance of SimCode: time 6.01e-07/0.5368, allocations: 0 / 0.6131 GB, free: 8.863 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02647/0.5633, allocations: 5.269 MB / 0.6183 GB, free: 3.645 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002103/0.5635, allocations: 123.2 kB / 0.6184 GB, free: 3.457 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.813/2.377, allocations: 0 / 0.6184 GB, free: 3.457 MB / 410.7 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