Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.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) 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(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001007/0.001007, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.264/1.264, allocations: 227.2 MB / 245 MB, free: 5.875 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008163/0.0008163, allocations: 112.3 kB / 297.3 MB, free: 5.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001945/0.0001946, allocations: 4 kB / 358 MB, free: 9.234 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1835/0.1837, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0882/0.2719, allocations: 83.62 MB / 493.1 MB, free: 6.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001863/0.2721, allocations: 71.95 kB / 493.2 MB, free: 6.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2035/0.4757, allocations: 28.3 MB / 0.5093 GB, free: 94.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4757, allocations: 0 / 0.5093 GB, free: 94.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.4757, allocations: 5.125 kB / 0.5093 GB, free: 94.25 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000539/0.4763, allocations: 0.6852 MB / 0.5099 GB, free: 93.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.4763, allocations: 8.969 kB / 0.5099 GB, free: 93.68 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.564e-05/0.4764, allocations: 42.5 kB / 0.51 GB, free: 93.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.319e-05/0.4765, allocations: 37.78 kB / 0.51 GB, free: 93.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002863/0.4768, allocations: 263.6 kB / 0.5103 GB, free: 93.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.096e-05/0.4768, allocations: 8.5 kB / 0.5103 GB, free: 93.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.441e-05/0.4768, allocations: 7.312 kB / 0.5103 GB, free: 93.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003032/0.4771, allocations: 143.4 kB / 0.5104 GB, free: 93.36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.4771, allocations: 1.344 kB / 0.5104 GB, free: 93.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.583e-05/0.4772, allocations: 6.156 kB / 0.5104 GB, free: 93.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.4772, allocations: 8.953 kB / 0.5104 GB, free: 93.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001403/0.4773, allocations: 64.7 kB / 0.5105 GB, free: 93.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006441/0.478, allocations: 479.1 kB / 0.5109 GB, free: 93.06 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001686/0.4782, allocations: 106.2 kB / 0.5111 GB, free: 93.04 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.141e-06/0.4782, allocations: 5.375 kB / 0.5111 GB, free: 93.04 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002841/0.4785, allocations: 227.5 kB / 0.5113 GB, free: 92.92 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.643e-06/0.4785, allocations: 0.9688 kB / 0.5113 GB, free: 92.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0007381/0.4792, allocations: 0.6671 MB / 0.5119 GB, free: 92.56 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.22e-05/0.4793, allocations: 164.5 kB / 0.5121 GB, free: 92.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004245/0.4797, allocations: 465.8 kB / 0.5125 GB, free: 92.19 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.4798, allocations: 40.05 kB / 0.5126 GB, free: 92.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.599e-05/0.4798, allocations: 103.1 kB / 0.5127 GB, free: 92.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.446e-05/0.4798, allocations: 26.16 kB / 0.5127 GB, free: 92.06 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.833e-05/0.4799, allocations: 3.656 kB / 0.5127 GB, free: 92.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.231e-05/0.4799, allocations: 318.1 kB / 0.513 GB, free: 91.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.48, allocations: 64.09 kB / 0.5131 GB, free: 91.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001169/0.4801, allocations: 80.94 kB / 0.5131 GB, free: 91.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001289/0.4803, allocations: 173.4 kB / 0.5133 GB, free: 91.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4803, allocations: 4 kB / 0.5133 GB, free: 91.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004474/0.4807, allocations: 412.4 kB / 0.5137 GB, free: 91.44 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.844e-05/0.4808, allocations: 126.8 kB / 0.5138 GB, free: 91.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-06/0.4808, allocations: 0 / 0.5138 GB, free: 91.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.4808, allocations: 0 / 0.5138 GB, free: 91.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.623e-05/0.4809, allocations: 0 / 0.5138 GB, free: 91.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.4809, allocations: 3.953 kB / 0.5138 GB, free: 91.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001268/0.481, allocations: 23.09 kB / 0.5138 GB, free: 91.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/0.4811, allocations: 121.7 kB / 0.514 GB, free: 91.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.iNV3S.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,$PRE.iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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.0002514/0.4814, allocations: 368.4 kB / 0.5143 GB, free: 91.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.337e-05/0.4814, allocations: 33.25 kB / 0.5143 GB, free: 91.01 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.449e-05/0.4815, allocations: 78.3 kB / 0.5144 GB, free: 90.96 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.4815, allocations: 0 / 0.5144 GB, free: 90.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.4815, allocations: 3.938 kB / 0.5144 GB, free: 90.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.4815, allocations: 3.953 kB / 0.5144 GB, free: 90.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007636/0.4823, allocations: 0.8305 MB / 0.5152 GB, free: 90.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.4823, allocations: 7.469 kB / 0.5152 GB, free: 90.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.729e-06/0.4823, allocations: 4 kB / 0.5152 GB, free: 90.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.4823, allocations: 0 / 0.5152 GB, free: 90.47 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.276e-05/0.4824, allocations: 21.78 kB / 0.5153 GB, free: 90.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.4824, allocations: 0 / 0.5153 GB, free: 90.47 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.4824, allocations: 7.016 kB / 0.5153 GB, free: 90.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005296/0.4829, allocations: 0.5558 MB / 0.5158 GB, free: 90.12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002765/0.4832, allocations: 257 kB / 0.5161 GB, free: 89.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.538e-05/0.4833, allocations: 11.78 kB / 0.5161 GB, free: 89.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001394/0.4834, allocations: 15.17 kB / 0.5161 GB, free: 89.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.4835, allocations: 47.5 kB / 0.5161 GB, free: 89.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.357e-05/0.4836, allocations: 120.4 kB / 0.5162 GB, free: 89.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003427/0.484, allocations: 384.9 kB / 0.5166 GB, free: 89.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.91e-07/0.484, allocations: 0 / 0.5166 GB, free: 89.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002688/0.4843, allocations: 50.41 kB / 0.5167 GB, free: 89.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,iNV3S.yy,iNV3S.nextstate,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.t_next,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,iNV3S.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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.000727/0.485, allocations: 1.109 MB / 0.5177 GB, free: 88.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004035/0.4854, allocations: 458.2 kB / 0.5182 GB, free: 88.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.4854, allocations: 0 / 0.5182 GB, free: 88.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002433/0.4857, allocations: 380.6 kB / 0.5185 GB, free: 88.15 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004626/0.4862, allocations: 104.5 kB / 0.5186 GB, free: 88.13 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001862/0.488, allocations: 1.636 MB / 0.5202 GB, free: 87.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002596/0.4883, allocations: 0.8082 MB / 0.521 GB, free: 86.38 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.627e-05/0.4884, allocations: 14.95 kB / 0.521 GB, free: 86.37 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.85e-05/0.4884, allocations: 23.16 kB / 0.5211 GB, free: 86.35 MB / 378.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4884, allocations: 0 / 0.5211 GB, free: 86.35 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01518/0.5036, allocations: 7.052 MB / 0.528 GB, free: 81.82 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001255/0.5037, allocations: 163.2 kB / 0.5281 GB, free: 81.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.522/2.025, allocations: 0 / 0.5281 GB, free: 81.59 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_INV3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_INV3S.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S_res.mat does not exist to compare? outputFormat=mat