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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0009783/0.0009783, allocations: 100.8 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009926/0.0009929, allocations: 202.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000317/0.0003171, allocations: 8 kB / 306.7 MB, free: 1.293 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.1459, allocations: 51.5 MB / 358.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.INV3S): time 0.002068/0.148, allocations: 1.206 MB / 359.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002271/0.1503, allocations: 0.8427 MB / 360.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.788e-05/0.1504, allocations: 4 kB / 360.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.432e-05/0.1505, allocations: 11.92 kB / 360.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.635e-05/0.1506, allocations: 15.97 kB / 360.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00028/0.1509, allocations: 39.83 kB / 360.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001482/0.151, allocations: 67.92 kB / 360.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.1511, allocations: 11.98 kB / 360.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004871/0.1516, allocations: 291.4 kB / 360.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001546/0.1518, allocations: 75.81 kB / 360.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.657e-05/0.1518, allocations: 4 kB / 360.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.039e-05/0.1519, allocations: 4 kB / 360.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.888e-05/0.152, allocations: 67.77 kB / 360.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.891e-05/0.1521, allocations: 73.5 kB / 360.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003395/0.1525, allocations: 279.4 kB / 361.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1525, allocations: 0 / 361.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.225e-06/0.1525, allocations: 0 / 361.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.1525, allocations: 0 / 361.2 MB, free: 10.8 MB / 302.1 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.0008328/0.1533, allocations: 0.6607 MB / 361.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/0.1534, allocations: 12.03 kB / 361.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.064e-05/0.1535, allocations: 46.55 kB / 361.9 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.612e-05/0.1536, allocations: 35.53 kB / 361.9 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003718/0.154, allocations: 265.3 kB / 362.2 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.499e-05/0.154, allocations: 11.89 kB / 362.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.097e-05/0.154, allocations: 12 kB / 362.2 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000375/0.1544, allocations: 117.6 kB / 362.3 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.1545, allocations: 0 / 362.3 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.861e-05/0.1545, allocations: 4 kB / 362.3 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.1545, allocations: 4 kB / 362.3 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001771/0.1547, allocations: 71.83 kB / 362.4 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008516/0.1556, allocations: 452.5 kB / 362.8 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002395/0.1558, allocations: 98.53 kB / 362.9 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.365e-05/0.1558, allocations: 0 / 362.9 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004545/0.1563, allocations: 206.7 kB / 363.1 MB, free: 8.621 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.914e-06/0.1563, allocations: 0 / 363.1 MB, free: 8.621 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008553/0.1572, allocations: 0.6113 MB / 363.8 MB, free: 7.945 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.528e-05/0.1573, allocations: 166.2 kB / 363.9 MB, free: 7.746 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006035/0.1579, allocations: 0.5168 MB / 364.4 MB, free: 7.223 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.223e-05/0.1579, allocations: 29.7 kB / 364.5 MB, free: 7.188 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.643e-05/0.158, allocations: 105.1 kB / 364.6 MB, free: 7.082 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.5e-05/0.1581, allocations: 35.64 kB / 364.6 MB, free: 7.047 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.325e-05/0.1581, allocations: 0 / 364.6 MB, free: 7.047 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.1582, allocations: 326.8 kB / 364.9 MB, free: 6.719 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001265/0.1583, allocations: 59.97 kB / 365 MB, free: 6.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001208/0.1585, allocations: 65.69 kB / 365 MB, free: 6.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001551/0.1586, allocations: 162.9 kB / 365.2 MB, free: 6.406 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1586, allocations: 0 / 365.2 MB, free: 6.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005031/0.1592, allocations: 384.2 kB / 365.6 MB, free: 6 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001213/0.1593, allocations: 130.8 kB / 365.7 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.1593, allocations: 0 / 365.7 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.1593, allocations: 0 / 365.7 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.453e-05/0.1594, allocations: 3.984 kB / 365.7 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.1594, allocations: 4 kB / 365.7 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001649/0.1595, allocations: 8 kB / 365.7 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-05/0.1596, allocations: 40 kB / 365.8 MB, free: 5.793 MB / 302.1 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.0003679/0.16, allocations: 374.2 kB / 366.1 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.85e-05/0.16, allocations: 43.61 kB / 366.2 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000104/0.1601, allocations: 63.16 kB / 366.2 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.1602, allocations: 0 / 366.2 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.1602, allocations: 4.125 kB / 366.2 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.1602, allocations: 0 / 366.2 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009356/0.1611, allocations: 0.8134 MB / 367 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.1611, allocations: 3.938 kB / 367 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.47e-06/0.1611, allocations: 0 / 367 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.1612, allocations: 4 kB / 367.1 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.548e-05/0.1612, allocations: 19.92 kB / 367.1 MB, free: 4.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.1612, allocations: 3.938 kB / 367.1 MB, free: 4.348 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1612, allocations: 0 / 367.1 MB, free: 4.348 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005998/0.1618, allocations: 0.5329 MB / 367.6 MB, free: 3.773 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000331/0.1621, allocations: 240.4 kB / 367.8 MB, free: 3.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.194e-05/0.1622, allocations: 12 kB / 367.9 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.1624, allocations: 15.92 kB / 367.9 MB, free: 3.492 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.1625, allocations: 31.97 kB / 367.9 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.965e-05/0.1625, allocations: 39.94 kB / 367.9 MB, free: 3.422 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000484/0.163, allocations: 390.8 kB / 368.3 MB, free: 3.043 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.163, allocations: 0 / 368.3 MB, free: 3.043 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003116/0.1634, allocations: 48 kB / 368.4 MB, free: 2.996 MB / 302.1 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.001068/0.1644, allocations: 1.081 MB / 369.5 MB, free: 1.863 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005316/0.165, allocations: 437.5 kB / 369.9 MB, free: 1.387 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.165, allocations: 0 / 369.9 MB, free: 1.387 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003354/0.1653, allocations: 377.5 kB / 370.2 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005241/0.1659, allocations: 100.9 kB / 370.3 MB, free: 0.875 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1946/0.3605, allocations: 1.585 MB / 371.9 MB, free: 19.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004056/0.361, allocations: 0.8092 MB / 372.7 MB, free: 18.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.404e-05/0.361, allocations: 11.27 kB / 372.8 MB, free: 18.74 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.1e-05/0.3611, allocations: 28.64 kB / 372.8 MB, free: 18.73 MB / 302.1 MB Notification: Performance of SimCode: time 1.553e-06/0.3611, allocations: 1.438 kB / 372.8 MB, free: 18.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.017/0.3781, allocations: 5.157 MB / 377.9 MB, free: 18.25 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001553/0.3783, allocations: 176.1 kB / 378.1 MB, free: 18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.751/2.129, allocations: 0 / 378.1 MB, free: 18 MB / 302.1 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