Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.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.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001946/0.001946, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.624/1.624, allocations: 225.6 MB / 234.8 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007576/0.0007579, allocations: 95.14 kB / 286.7 MB, free: 5.242 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2117/0.2117, allocations: 45.14 MB / 383.7 MB, free: 336 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.033e-05/2.035e-05, allocations: 4 kB / 453.3 MB, free: 75.77 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1204, allocations: 63.25 MB / 0.5045 GB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3725/0.4929, allocations: 96.03 MB / 0.5982 GB, free: 6.348 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001896/0.4932, allocations: 69.22 kB / 0.5983 GB, free: 6.316 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04194/0.5351, allocations: 14.42 MB / 0.6124 GB, free: 10.41 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5352, allocations: 0 / 0.6124 GB, free: 10.41 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.386e-05/0.5353, allocations: 16 kB / 0.6124 GB, free: 10.39 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.002161/0.5374, allocations: 0.8828 MB / 0.6133 GB, free: 9.504 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.709e-05/0.5375, allocations: 8.031 kB / 0.6133 GB, free: 9.496 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005306/0.5381, allocations: 106.9 kB / 0.6134 GB, free: 9.391 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001162/0.5392, allocations: 0.5117 MB / 0.6139 GB, free: 8.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.059e-05/0.5393, allocations: 20 kB / 0.6139 GB, free: 8.891 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001155/0.5394, allocations: 43.89 kB / 0.6139 GB, free: 8.848 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005747/0.54, allocations: 285.7 kB / 0.6142 GB, free: 8.68 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000857/0.5409, allocations: 0.4908 MB / 0.6147 GB, free: 8.238 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/0.5409, allocations: 3.984 kB / 0.6147 GB, free: 8.234 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.764e-05/0.541, allocations: 3.953 kB / 0.6147 GB, free: 8.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/0.541, allocations: 16 kB / 0.6147 GB, free: 8.215 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004461/0.5454, allocations: 2.931 MB / 0.6176 GB, free: 5.539 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000692/0.5462, allocations: 345.4 kB / 0.6179 GB, free: 5.305 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002218/0.5464, allocations: 125.9 kB / 0.618 GB, free: 5.223 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.692e-05/0.5465, allocations: 11.62 kB / 0.618 GB, free: 5.215 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.616e-05/0.5465, allocations: 41.78 kB / 0.6181 GB, free: 5.168 MB / 410.7 MB Notification: Performance of pre-optimization done (n=39): time 3.446e-06/0.5465, allocations: 0 / 0.6181 GB, free: 5.168 MB / 410.7 MB Notification: Performance of matching and sorting (n=39): time 0.0007237/0.5473, allocations: 336 kB / 0.6184 GB, free: 4.906 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.105e-05/0.5474, allocations: 111.6 kB / 0.6185 GB, free: 4.773 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006011/0.548, allocations: 443.7 kB / 0.6189 GB, free: 4.434 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.781e-05/0.548, allocations: 25.7 kB / 0.6189 GB, free: 4.402 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002783/0.5483, allocations: 374.2 kB / 0.6193 GB, free: 4.148 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/0.5485, allocations: 149.5 kB / 0.6194 GB, free: 4.023 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.299e-05/0.5485, allocations: 0 / 0.6194 GB, free: 4.023 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002042/0.5487, allocations: 378.4 kB / 0.6198 GB, free: 3.672 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002486/0.549, allocations: 137.7 kB / 0.6199 GB, free: 3.59 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004188/0.5494, allocations: 341.2 kB / 0.6203 GB, free: 3.238 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003582/0.5498, allocations: 185 kB / 0.6204 GB, free: 3.117 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/0.5498, allocations: 0 / 0.6204 GB, free: 3.117 MB / 410.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.000931/0.5507, allocations: 0.5156 MB / 0.6209 GB, free: 2.707 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001388/0.5521, allocations: 2.619 MB / 0.6235 GB, free: 15.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.5522, allocations: 11.94 kB / 0.6235 GB, free: 15.92 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.668e-05/0.5522, allocations: 8 kB / 0.6235 GB, free: 15.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005811/0.5528, allocations: 139.2 kB / 0.6236 GB, free: 15.78 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.004e-05/0.5528, allocations: 19.92 kB / 0.6237 GB, free: 15.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004674/0.5533, allocations: 63.52 kB / 0.6237 GB, free: 15.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.023e-05/0.5533, allocations: 26.88 kB / 0.6237 GB, free: 15.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.235e-06/0.5533, allocations: 4 kB / 0.6238 GB, free: 15.67 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006947/0.554, allocations: 424.7 kB / 0.6242 GB, free: 15.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.5541, allocations: 11.98 kB / 0.6242 GB, free: 15.35 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.5541, allocations: 8.875 kB / 0.6242 GB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004944/0.5546, allocations: 139.2 kB / 0.6243 GB, free: 15.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.5546, allocations: 11.94 kB / 0.6243 GB, free: 15.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003676/0.555, allocations: 51.53 kB / 0.6244 GB, free: 15.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.095e-05/0.555, allocations: 30.88 kB / 0.6244 GB, free: 15.12 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 7 (Asec.local_reset,Vsec.local_reset,Wsec.local_reset,PID1.I.local_reset,PID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 78 * 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.0001535/0.5552, allocations: 121.4 kB / 0.6245 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005318/0.5557, allocations: 329.9 kB / 0.6248 GB, free: 14.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.5559, allocations: 67.16 kB / 0.6249 GB, free: 14.68 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001702/0.556, allocations: 70.36 kB / 0.625 GB, free: 14.64 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.774e-06/0.556, allocations: 4 kB / 0.625 GB, free: 14.63 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.5561, allocations: 7.938 kB / 0.625 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.5561, allocations: 0 / 0.625 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007243/0.5568, allocations: 0.5011 MB / 0.6255 GB, free: 14.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.5568, allocations: 4 kB / 0.6255 GB, free: 14.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005121/0.5573, allocations: 95.81 kB / 0.6256 GB, free: 14.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.5573, allocations: 4 kB / 0.6256 GB, free: 14.11 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.185e-05/0.5574, allocations: 0 / 0.6256 GB, free: 14.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.954e-06/0.5574, allocations: 7.938 kB / 0.6256 GB, free: 14.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.5574, allocations: 3.953 kB / 0.6256 GB, free: 14.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008709/0.5583, allocations: 0.6711 MB / 0.6262 GB, free: 13.55 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002085/0.5585, allocations: 167.5 kB / 0.6264 GB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.181e-05/0.5586, allocations: 7.359 kB / 0.6264 GB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003694/0.559, allocations: 27.94 kB / 0.6264 GB, free: 13.36 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.924e-05/0.5591, allocations: 31.33 kB / 0.6265 GB, free: 13.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-05/0.5591, allocations: 15.86 kB / 0.6265 GB, free: 13.32 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003737/0.5595, allocations: 333.6 kB / 0.6268 GB, free: 13.08 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5595, allocations: 0 / 0.6268 GB, free: 13.08 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008448/0.5603, allocations: 219.1 kB / 0.627 GB, free: 12.86 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x,Wsec.y,Vsec.y,Asec.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 39 * 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.001231/0.5616, allocations: 1.31 MB / 0.6283 GB, free: 11.68 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009913/0.5626, allocations: 0.6109 MB / 0.6289 GB, free: 11.26 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.5626, allocations: 0.5625 kB / 0.6289 GB, free: 11.26 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000211/0.5628, allocations: 159.3 kB / 0.629 GB, free: 11.15 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009494/0.5638, allocations: 152.6 kB / 0.6292 GB, free: 11.03 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002355/0.5661, allocations: 1.165 MB / 0.6303 GB, free: 9.91 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005748/0.5667, allocations: 0.9279 MB / 0.6312 GB, free: 8.957 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005191/0.5673, allocations: 123.1 kB / 0.6313 GB, free: 8.836 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003066/0.5676, allocations: 234.1 kB / 0.6316 GB, free: 8.781 MB / 426.7 MB Notification: Performance of SimCode: time 5.11e-07/0.5676, allocations: 0 / 0.6316 GB, free: 8.781 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0365/0.6041, allocations: 11.84 MB / 0.6431 GB, free: 12.99 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002053/0.6043, allocations: 121.5 kB / 0.6432 GB, free: 12.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.355/2.959, allocations: 0 / 0.6432 GB, free: 12.8 MB / 442.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_UnitDeduction_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_UnitDeduction.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat