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.001181/0.001181, allocations: 195 kB / 14.16 MB, free: 1.152 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 225.4 MB / 240.1 MB, free: 15.02 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001073/0.001073, allocations: 93.27 kB / 292.1 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.465e-05/3.468e-05, allocations: 4 kB / 350.6 MB, free: 2.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.147, allocations: 51.48 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4308/0.5778, allocations: 83.54 MB / 485.7 MB, free: 5.867 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001698/0.578, allocations: 67.45 kB / 485.7 MB, free: 5.832 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05455/0.6326, allocations: 28.52 MB / 0.5022 GB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.6326, allocations: 0 / 0.5022 GB, free: 11.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.659e-05/0.6327, allocations: 4 kB / 0.5022 GB, free: 11.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.00075/0.6334, allocations: 0.616 MB / 0.5028 GB, free: 10.58 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.6335, allocations: 16.03 kB / 0.5028 GB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.162e-05/0.6336, allocations: 46.48 kB / 0.5029 GB, free: 10.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.144e-05/0.6337, allocations: 35.62 kB / 0.5029 GB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003536/0.634, allocations: 249.5 kB / 0.5031 GB, free: 10.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.634, allocations: 4 kB / 0.5031 GB, free: 10.19 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.637e-05/0.6341, allocations: 15.94 kB / 0.5032 GB, free: 10.17 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003054/0.6344, allocations: 149.5 kB / 0.5033 GB, free: 10.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.6344, allocations: 0 / 0.5033 GB, free: 10.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.791e-05/0.6345, allocations: 4 kB / 0.5033 GB, free: 10.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.6345, allocations: 0 / 0.5033 GB, free: 10.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001459/0.6346, allocations: 75.91 kB / 0.5034 GB, free: 9.941 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007962/0.6354, allocations: 476.5 kB / 0.5038 GB, free: 9.449 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001903/0.6356, allocations: 102.5 kB / 0.5039 GB, free: 9.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001469/0.6358, allocations: 93.44 kB / 0.504 GB, free: 9.246 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.012e-05/0.6358, allocations: 0 / 0.504 GB, free: 9.246 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003045/0.6361, allocations: 227.5 kB / 0.5042 GB, free: 9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.954e-06/0.6361, allocations: 0 / 0.5042 GB, free: 9 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006926/0.6368, allocations: 438.4 kB / 0.5047 GB, free: 8.543 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.185e-05/0.6369, allocations: 170.1 kB / 0.5048 GB, free: 8.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000599/0.6375, allocations: 462.5 kB / 0.5053 GB, free: 7.879 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.778e-05/0.6376, allocations: 33.7 kB / 0.5053 GB, free: 7.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.431e-05/0.6376, allocations: 101.1 kB / 0.5054 GB, free: 7.738 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.044e-05/0.6377, allocations: 23.7 kB / 0.5054 GB, free: 7.715 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.936e-05/0.6377, allocations: 4 kB / 0.5054 GB, free: 7.711 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.6378, allocations: 328.2 kB / 0.5057 GB, free: 7.383 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.638, allocations: 59.98 kB / 0.5058 GB, free: 7.324 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001157/0.6381, allocations: 71.95 kB / 0.5058 GB, free: 7.254 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001662/0.6383, allocations: 175.7 kB / 0.506 GB, free: 7.059 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.6383, allocations: 3.938 kB / 0.506 GB, free: 7.055 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005421/0.6388, allocations: 413.7 kB / 0.5064 GB, free: 6.621 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.3e-05/0.6389, allocations: 126.8 kB / 0.5065 GB, free: 6.473 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.6389, allocations: 0 / 0.5065 GB, free: 6.473 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.639, allocations: 0 / 0.5065 GB, free: 6.473 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.149e-05/0.639, allocations: 4 kB / 0.5065 GB, free: 6.469 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.283e-06/0.639, allocations: 0 / 0.5065 GB, free: 6.469 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.6391, allocations: 12.11 kB / 0.5065 GB, free: 6.457 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000131/0.6393, allocations: 123.7 kB / 0.5067 GB, free: 6.336 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,$PRE.iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.x,$PRE.iNV3S.inertialDelaySensitive.y,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 () * 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.0001825/0.6395, allocations: 245.5 kB / 0.5069 GB, free: 6.062 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.707e-05/0.6395, allocations: 43.53 kB / 0.5069 GB, free: 6.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001015/0.6396, allocations: 65.53 kB / 0.507 GB, free: 5.957 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.6397, allocations: 4 kB / 0.507 GB, free: 5.953 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.6397, allocations: 0 / 0.507 GB, free: 5.953 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.6397, allocations: 3.984 kB / 0.507 GB, free: 5.949 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009613/0.6406, allocations: 0.8291 MB / 0.5078 GB, free: 5.035 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.6407, allocations: 128 / 0.5078 GB, free: 5.035 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.113e-05/0.6407, allocations: 11.98 kB / 0.5078 GB, free: 5.023 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.062e-06/0.6407, allocations: 0 / 0.5078 GB, free: 5.023 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.637e-05/0.6407, allocations: 27.92 kB / 0.5079 GB, free: 4.996 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.6407, allocations: 3.984 kB / 0.5079 GB, free: 4.992 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.6407, allocations: 0 / 0.5079 GB, free: 4.992 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007038/0.6414, allocations: 0.5642 MB / 0.5084 GB, free: 4.387 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003306/0.6418, allocations: 248.4 kB / 0.5087 GB, free: 4.125 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.955e-05/0.6419, allocations: 12 kB / 0.5087 GB, free: 4.113 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.642, allocations: 12 kB / 0.5087 GB, free: 4.102 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.6421, allocations: 39.95 kB / 0.5087 GB, free: 4.062 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001131/0.6423, allocations: 119.9 kB / 0.5088 GB, free: 3.945 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004421/0.6427, allocations: 384.9 kB / 0.5092 GB, free: 3.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.764e-06/0.6427, allocations: 0 / 0.5092 GB, free: 3.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002671/0.643, allocations: 47.94 kB / 0.5092 GB, free: 3.523 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) * 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.0009975/0.644, allocations: 1.111 MB / 0.5103 GB, free: 2.363 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004843/0.6445, allocations: 441.6 kB / 0.5107 GB, free: 1.883 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.6445, allocations: 4 kB / 0.5108 GB, free: 1.879 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003254/0.6448, allocations: 379.1 kB / 0.5111 GB, free: 1.461 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005503/0.6454, allocations: 99.16 kB / 0.5112 GB, free: 1.367 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001169/0.6466, allocations: 0.6301 MB / 0.5118 GB, free: 0.6953 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005483/0.6471, allocations: 0.8065 MB / 0.5126 GB, free: 15.86 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 5.302e-05/0.6472, allocations: 8.656 kB / 0.5126 GB, free: 15.85 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.08e-05/0.6473, allocations: 31.42 kB / 0.5126 GB, free: 15.82 MB / 394.7 MB Notification: Performance of SimCode: time 9.42e-07/0.6473, allocations: 0 / 0.5126 GB, free: 15.82 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02105/0.6683, allocations: 7.046 MB / 0.5195 GB, free: 8.855 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002433/0.6686, allocations: 142.4 kB / 0.5197 GB, free: 8.637 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.616/2.285, allocations: 11.75 kB / 0.5197 GB, free: 8.629 MB / 394.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