Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 174.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 221.5 MB / 230.7 MB, free: 7.594 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000808/0.000808, allocations: 92.28 kB / 281.6 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1867/0.1867, allocations: 44.16 MB / 376.5 MB, free: 3.055 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.493e-05/1.523e-05, allocations: 4.219 kB / 444.7 MB, free: 15.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1154, allocations: 61.92 MB / 0.4948 GB, free: 1.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4158/0.5313, allocations: 94.97 MB / 0.5875 GB, free: 1.398 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002555/0.5316, allocations: 67.97 kB / 0.5876 GB, free: 1.332 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05535/0.587, allocations: 14.31 MB / 0.6015 GB, free: 3.008 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.587, allocations: 0 / 0.6015 GB, free: 3.008 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.509e-05/0.5871, allocations: 20 kB / 0.6016 GB, free: 2.988 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.002101/0.5892, allocations: 0.8781 MB / 0.6024 GB, free: 2.062 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.5893, allocations: 11.98 kB / 0.6024 GB, free: 2.051 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002412/0.5895, allocations: 98.97 kB / 0.6025 GB, free: 1.953 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001269/0.5908, allocations: 0.504 MB / 0.603 GB, free: 1.406 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.792e-05/0.5909, allocations: 16 kB / 0.603 GB, free: 1.391 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001182/0.591, allocations: 43.91 kB / 0.6031 GB, free: 1.348 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000831/0.5918, allocations: 290.6 kB / 0.6033 GB, free: 1.062 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001123/0.593, allocations: 0.4922 MB / 0.6038 GB, free: 0.5117 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.614e-05/0.593, allocations: 0 / 0.6038 GB, free: 0.5117 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.592e-05/0.5931, allocations: 8 kB / 0.6038 GB, free: 0.5039 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.823e-05/0.5931, allocations: 12 kB / 0.6038 GB, free: 0.4922 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005451/0.5986, allocations: 2.927 MB / 0.6067 GB, free: 13.44 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00089/0.5995, allocations: 345.8 kB / 0.607 GB, free: 13.08 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003078/0.5998, allocations: 125.7 kB / 0.6072 GB, free: 12.95 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.246e-05/0.5999, allocations: 12.06 kB / 0.6072 GB, free: 12.94 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.303e-05/0.6, allocations: 42.56 kB / 0.6072 GB, free: 12.89 MB / 426.7 MB Notification: Performance of pre-optimization done (n=39): time 4.849e-06/0.6, allocations: 0 / 0.6072 GB, free: 12.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=39): time 0.001073/0.6011, allocations: 330.5 kB / 0.6075 GB, free: 12.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/0.6012, allocations: 106.8 kB / 0.6076 GB, free: 12.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007624/0.602, allocations: 447.3 kB / 0.608 GB, free: 11.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.814e-05/0.6021, allocations: 29.64 kB / 0.6081 GB, free: 11.95 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003747/0.6024, allocations: 375.9 kB / 0.6084 GB, free: 11.58 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001816/0.6026, allocations: 145.8 kB / 0.6086 GB, free: 11.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.073e-05/0.6027, allocations: 4 kB / 0.6086 GB, free: 11.43 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002697/0.603, allocations: 374.8 kB / 0.6089 GB, free: 11.05 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003732/0.6034, allocations: 129.6 kB / 0.6091 GB, free: 10.93 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005847/0.604, allocations: 340.8 kB / 0.6094 GB, free: 10.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004621/0.6044, allocations: 172.5 kB / 0.6095 GB, free: 10.33 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/0.6045, allocations: 4 kB / 0.6096 GB, free: 10.33 MB / 426.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001313/0.6058, allocations: 0.5241 MB / 0.6101 GB, free: 9.797 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001487/0.6073, allocations: 2.617 MB / 0.6126 GB, free: 6.977 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.767e-05/0.6073, allocations: 4 kB / 0.6126 GB, free: 6.973 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.56e-05/0.6074, allocations: 15.95 kB / 0.6126 GB, free: 6.957 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008505/0.6082, allocations: 143.8 kB / 0.6128 GB, free: 6.816 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.088e-05/0.6082, allocations: 15.92 kB / 0.6128 GB, free: 6.801 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006685/0.6089, allocations: 63.42 kB / 0.6129 GB, free: 6.738 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.521e-05/0.609, allocations: 28 kB / 0.6129 GB, free: 6.711 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/0.609, allocations: 4 kB / 0.6129 GB, free: 6.707 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001055/0.6101, allocations: 431.8 kB / 0.6133 GB, free: 6.285 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.6101, allocations: 7.938 kB / 0.6133 GB, free: 6.277 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.6101, allocations: 12 kB / 0.6133 GB, free: 6.266 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007709/0.6109, allocations: 135.8 kB / 0.6134 GB, free: 6.133 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.589e-05/0.611, allocations: 11.94 kB / 0.6135 GB, free: 6.121 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005893/0.6116, allocations: 47.58 kB / 0.6135 GB, free: 6.074 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.842e-05/0.6116, allocations: 28.03 kB / 0.6135 GB, free: 6.047 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.0001969/0.6118, allocations: 132.7 kB / 0.6137 GB, free: 5.91 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008459/0.6127, allocations: 329.7 kB / 0.614 GB, free: 5.582 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/0.6129, allocations: 63.25 kB / 0.614 GB, free: 5.52 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002268/0.6131, allocations: 62.47 kB / 0.6141 GB, free: 5.457 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.6131, allocations: 4 kB / 0.6141 GB, free: 5.453 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.6132, allocations: 0 / 0.6141 GB, free: 5.453 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.6132, allocations: 3.938 kB / 0.6141 GB, free: 5.449 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001129/0.6143, allocations: 0.517 MB / 0.6146 GB, free: 4.895 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.6143, allocations: 4 kB / 0.6146 GB, free: 4.891 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007738/0.6151, allocations: 95.88 kB / 0.6147 GB, free: 4.797 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.17e-05/0.6151, allocations: 0 / 0.6147 GB, free: 4.797 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.632e-05/0.6152, allocations: 15.94 kB / 0.6147 GB, free: 4.781 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.6152, allocations: 0 / 0.6147 GB, free: 4.781 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.6152, allocations: 4 kB / 0.6147 GB, free: 4.777 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001256/0.6165, allocations: 0.6773 MB / 0.6154 GB, free: 4.07 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002897/0.6168, allocations: 164.4 kB / 0.6155 GB, free: 3.891 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/0.6169, allocations: 4 kB / 0.6155 GB, free: 3.887 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005744/0.6175, allocations: 31.97 kB / 0.6156 GB, free: 3.855 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.6176, allocations: 27.95 kB / 0.6156 GB, free: 3.828 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.336e-05/0.6177, allocations: 15.98 kB / 0.6156 GB, free: 3.812 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006045/0.6183, allocations: 331.2 kB / 0.6159 GB, free: 3.496 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.6183, allocations: 0 / 0.6159 GB, free: 3.496 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001411/0.6197, allocations: 223.1 kB / 0.6161 GB, free: 3.277 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.001587/0.6213, allocations: 1.287 MB / 0.6174 GB, free: 1.961 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001603/0.6229, allocations: 0.5963 MB / 0.618 GB, free: 1.367 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.623, allocations: 4 kB / 0.618 GB, free: 1.363 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003661/0.6233, allocations: 155.8 kB / 0.6181 GB, free: 1.211 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001301/0.6246, allocations: 155.3 kB / 0.6183 GB, free: 1.059 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003218/0.6279, allocations: 1.18 MB / 0.6194 GB, free: 15.84 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006624/0.6286, allocations: 0.9239 MB / 0.6203 GB, free: 14.89 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0008058/0.6294, allocations: 111.1 kB / 0.6204 GB, free: 14.78 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004894/0.6299, allocations: 239.3 kB / 0.6207 GB, free: 14.54 MB / 442.7 MB Notification: Performance of SimCode: time 1.874e-06/0.6299, allocations: 0 / 0.6207 GB, free: 14.54 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04254/0.6725, allocations: 11.82 MB / 0.6322 GB, free: 2.805 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001744/0.6727, allocations: 130.5 kB / 0.6323 GB, free: 2.605 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.277/2.95, allocations: 3.938 kB / 0.6323 GB, free: 2.602 MB / 442.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_UnitDeduction_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_UnitDeduction.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat