Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001105/0.001105, allocations: 183.9 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.422/1.422, allocations: 205.4 MB / 221.9 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008401/0.0008401, allocations: 94.86 kB / 270.2 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2055/0.2055, allocations: 43.55 MB / 362 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003309/0.0003309, allocations: 8 kB / 431.5 MB, free: 19.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1202, allocations: 58.86 MB / 490.3 MB, free: 8.594 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3745/0.4947, allocations: 94.44 MB / 0.5711 GB, free: 5.375 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001703/0.495, allocations: 67.41 kB / 0.5711 GB, free: 5.344 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03841/0.5334, allocations: 14.39 MB / 0.5852 GB, free: 9.281 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5334, allocations: 0 / 0.5852 GB, free: 9.281 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001094/0.5336, allocations: 23.94 kB / 0.5852 GB, free: 9.258 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: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.002548/0.5361, allocations: 0.9827 MB / 0.5862 GB, free: 8.277 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.5362, allocations: 8.031 kB / 0.5862 GB, free: 8.27 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002112/0.5364, allocations: 96.88 kB / 0.5863 GB, free: 8.195 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002671/0.5367, allocations: 90.92 kB / 0.5864 GB, free: 8.105 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001149/0.5378, allocations: 0.5157 MB / 0.5869 GB, free: 7.617 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.919e-05/0.5379, allocations: 48.25 kB / 0.5869 GB, free: 7.59 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.712e-05/0.538, allocations: 63.28 kB / 0.587 GB, free: 7.547 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.5391, allocations: 0.612 MB / 0.5876 GB, free: 7.039 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.85e-05/0.5391, allocations: 7.938 kB / 0.5876 GB, free: 7.031 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.213e-05/0.5392, allocations: 23.31 kB / 0.5876 GB, free: 7.023 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.628e-05/0.5392, allocations: 19.95 kB / 0.5876 GB, free: 7.004 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007862/0.54, allocations: 408.7 kB / 0.588 GB, free: 6.723 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004029/0.544, allocations: 3.008 MB / 0.5909 GB, free: 3.984 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/0.5451, allocations: 497.8 kB / 0.5914 GB, free: 3.602 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.246e-05/0.5451, allocations: 4 kB / 0.5914 GB, free: 3.598 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.767e-05/0.5452, allocations: 38.36 kB / 0.5915 GB, free: 3.555 MB / 394.7 MB Notification: Performance of pre-optimization done (n=39): time 2.715e-06/0.5452, allocations: 0 / 0.5915 GB, free: 3.555 MB / 394.7 MB Notification: Performance of matching and sorting (n=39): time 0.001224/0.5464, allocations: 0.5768 MB / 0.592 GB, free: 3.102 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.323e-05/0.5465, allocations: 106.8 kB / 0.5921 GB, free: 2.973 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005625/0.5471, allocations: 491.9 kB / 0.5926 GB, free: 2.582 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.581e-05/0.5471, allocations: 42.08 kB / 0.5926 GB, free: 2.543 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002416/0.5474, allocations: 369.7 kB / 0.593 GB, free: 2.293 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/0.5475, allocations: 155.9 kB / 0.5931 GB, free: 2.16 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.342e-05/0.5475, allocations: 9.312 kB / 0.5931 GB, free: 2.16 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.5477, allocations: 380.7 kB / 0.5935 GB, free: 1.809 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003927/0.5481, allocations: 191.8 kB / 0.5937 GB, free: 1.68 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005064/0.5486, allocations: 407.3 kB / 0.5941 GB, free: 1.258 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004533/0.5491, allocations: 238.7 kB / 0.5943 GB, free: 1.102 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.5491, allocations: 0 / 0.5943 GB, free: 1.102 MB / 394.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001278/0.5504, allocations: 0.6673 MB / 0.595 GB, free: 0.582 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001256/0.5516, allocations: 2.614 MB / 0.5975 GB, free: 13.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.703e-05/0.5517, allocations: 8 kB / 0.5975 GB, free: 13.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.724e-05/0.5517, allocations: 12 kB / 0.5975 GB, free: 13.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000533/0.5522, allocations: 150.4 kB / 0.5977 GB, free: 13.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.935e-05/0.5523, allocations: 15.94 kB / 0.5977 GB, free: 13.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005174/0.5528, allocations: 72.94 kB / 0.5978 GB, free: 13.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.616e-05/0.5529, allocations: 30.06 kB / 0.5978 GB, free: 13.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/0.5529, allocations: 4 kB / 0.5978 GB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009669/0.5538, allocations: 0.5424 MB / 0.5983 GB, free: 13.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.5539, allocations: 8 kB / 0.5983 GB, free: 13.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.5539, allocations: 12 kB / 0.5983 GB, free: 13.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004715/0.5544, allocations: 135.6 kB / 0.5985 GB, free: 13.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.709e-05/0.5544, allocations: 19.89 kB / 0.5985 GB, free: 13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004838/0.5549, allocations: 62.64 kB / 0.5985 GB, free: 12.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.169e-05/0.5549, allocations: 30.31 kB / 0.5986 GB, free: 12.92 MB / 410.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 () * Number of clocked 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.0003872/0.5553, allocations: 277 kB / 0.5988 GB, free: 12.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001421/0.5555, allocations: 67.16 kB / 0.5989 GB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001577/0.5556, allocations: 69.36 kB / 0.599 GB, free: 12.58 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.5557, allocations: 4 kB / 0.599 GB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.746e-06/0.5557, allocations: 3.953 kB / 0.599 GB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.5557, allocations: 3.984 kB / 0.599 GB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000815/0.5565, allocations: 0.5742 MB / 0.5995 GB, free: 12.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.5565, allocations: 0 / 0.5995 GB, free: 12.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000496/0.557, allocations: 91.19 kB / 0.5996 GB, free: 11.99 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.585e-06/0.557, allocations: 4 kB / 0.5996 GB, free: 11.99 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.484e-05/0.5571, allocations: 11.62 kB / 0.5996 GB, free: 11.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.5571, allocations: 3.938 kB / 0.5996 GB, free: 11.98 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.5571, allocations: 4 kB / 0.5996 GB, free: 11.98 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001302/0.5584, allocations: 0.8447 MB / 0.6005 GB, free: 11.28 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002184/0.5586, allocations: 170 kB / 0.6006 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.173e-05/0.5587, allocations: 11.73 kB / 0.6006 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003822/0.5591, allocations: 34.98 kB / 0.6007 GB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.517e-05/0.5592, allocations: 39.78 kB / 0.6007 GB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.498e-05/0.5593, allocations: 11.98 kB / 0.6007 GB, free: 11.03 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004031/0.5597, allocations: 372 kB / 0.6011 GB, free: 10.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5597, allocations: 0 / 0.6011 GB, free: 10.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008062/0.5605, allocations: 252.5 kB / 0.6013 GB, free: 10.53 MB / 410.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 () * Number of clocked 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.001507/0.562, allocations: 1.449 MB / 0.6027 GB, free: 9.227 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001382/0.5634, allocations: 0.7446 MB / 0.6035 GB, free: 8.664 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.5634, allocations: 0 / 0.6035 GB, free: 8.664 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003585/0.5638, allocations: 206.9 kB / 0.6037 GB, free: 8.512 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008371/0.5646, allocations: 164.3 kB / 0.6038 GB, free: 8.395 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007507/0.5722, allocations: 8.505 MB / 0.6121 GB, free: 284 kB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004809/0.5727, allocations: 0.923 MB / 0.613 GB, free: 15.33 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004152/0.5731, allocations: 84.78 kB / 0.6131 GB, free: 15.25 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002961/0.5734, allocations: 245.8 kB / 0.6133 GB, free: 15.18 MB / 426.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5734, allocations: 3.938 kB / 0.6133 GB, free: 15.18 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03038/0.6038, allocations: 11.87 MB / 0.6249 GB, free: 3.352 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000232/0.6041, allocations: 161 kB / 0.6251 GB, free: 3.109 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.109/2.713, allocations: 0 / 0.6251 GB, free: 3.109 MB / 426.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_UnitDeduction_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_UnitDeduction.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat