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.0009252/0.0009251, allocations: 94.61 kB / 17 MB, free: 6.797 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009286/0.0009287, allocations: 198 kB / 17.91 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000256/0.000256, allocations: 4 kB / 306.8 MB, free: 1.492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1364, allocations: 51.5 MB / 358.3 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.INV3S): time 0.001741/0.1382, allocations: 1.21 MB / 359.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001717/0.1399, allocations: 0.8465 MB / 360.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.89e-05/0.14, allocations: 0 / 360.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.358e-05/0.1401, allocations: 11.92 kB / 360.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.451e-05/0.1402, allocations: 7.938 kB / 360.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002512/0.1404, allocations: 43.88 kB / 360.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001465/0.1406, allocations: 107.8 kB / 360.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001333/0.1407, allocations: 12 kB / 360.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005209/0.1413, allocations: 355.4 kB / 360.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001387/0.1414, allocations: 71.77 kB / 361 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.204e-05/0.1415, allocations: 8 kB / 361 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.538e-05/0.1415, allocations: 4 kB / 361 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.1416, allocations: 59.77 kB / 361 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.576e-05/0.1417, allocations: 77.52 kB / 361.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000309/0.142, allocations: 291.3 kB / 361.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.906e-06/0.142, allocations: 0 / 361.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.968e-06/0.142, allocations: 0 / 361.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.715e-06/0.1421, allocations: 0 / 361.4 MB, free: 10.9 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.0007593/0.1428, allocations: 0.6595 MB / 362 MB, free: 10.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.1429, allocations: 8.031 kB / 362 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.436e-05/0.1429, allocations: 50.55 kB / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.411e-05/0.143, allocations: 39.53 kB / 362.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002752/0.1433, allocations: 265.2 kB / 362.4 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/0.1433, allocations: 4 kB / 362.4 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.652e-05/0.1434, allocations: 11.98 kB / 362.4 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00029/0.1437, allocations: 129.6 kB / 362.5 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.732e-06/0.1437, allocations: 0 / 362.5 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.1437, allocations: 4 kB / 362.5 MB, free: 9.613 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.1437, allocations: 0 / 362.5 MB, free: 9.613 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000131/0.1438, allocations: 59.95 kB / 362.6 MB, free: 9.555 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006935/0.1445, allocations: 460.5 kB / 363.1 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001814/0.1447, allocations: 90.55 kB / 363.1 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/0.1449, allocations: 88.88 kB / 363.2 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.092e-05/0.1449, allocations: 4 kB / 363.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003371/0.1453, allocations: 214.2 kB / 363.4 MB, free: 8.633 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.443e-06/0.1453, allocations: 0 / 363.4 MB, free: 8.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007617/0.146, allocations: 456 kB / 363.9 MB, free: 8.156 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.1462, allocations: 166.2 kB / 364 MB, free: 7.957 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006512/0.1468, allocations: 0.5207 MB / 364.6 MB, free: 7.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.071e-05/0.1469, allocations: 29.7 kB / 364.6 MB, free: 7.395 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.931e-05/0.1469, allocations: 105.1 kB / 364.7 MB, free: 7.289 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.274e-05/0.147, allocations: 31.64 kB / 364.7 MB, free: 7.258 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.323e-05/0.147, allocations: 0 / 364.7 MB, free: 7.258 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002022/0.1472, allocations: 326.8 kB / 365 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001293/0.1474, allocations: 55.97 kB / 365.1 MB, free: 6.875 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001314/0.1475, allocations: 69.69 kB / 365.2 MB, free: 6.801 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002478/0.1478, allocations: 166.8 kB / 365.3 MB, free: 6.613 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1478, allocations: 0 / 365.3 MB, free: 6.613 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005261/0.1483, allocations: 384.3 kB / 365.7 MB, free: 6.207 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001218/0.1484, allocations: 130.8 kB / 365.8 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.1484, allocations: 0 / 365.8 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.1485, allocations: 0 / 365.8 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.537e-05/0.1485, allocations: 4 kB / 365.8 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.862e-06/0.1485, allocations: 0 / 365.8 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001524/0.1487, allocations: 8 kB / 365.8 MB, free: 6.043 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.209e-05/0.1487, allocations: 51.97 kB / 365.9 MB, free: 5.992 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.0003783/0.1491, allocations: 374.2 kB / 366.3 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.553e-05/0.1492, allocations: 35.62 kB / 366.3 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000122/0.1493, allocations: 63.16 kB / 366.4 MB, free: 5.484 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.1493, allocations: 0 / 366.4 MB, free: 5.484 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.1493, allocations: 0 / 366.4 MB, free: 5.484 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.1493, allocations: 0 / 366.4 MB, free: 5.484 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009709/0.1503, allocations: 0.8094 MB / 367.2 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1503, allocations: 0 / 367.2 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.208e-06/0.1503, allocations: 192 / 367.2 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.1503, allocations: 11.98 kB / 367.2 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.797e-05/0.1504, allocations: 16 kB / 367.2 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.1504, allocations: 0 / 367.2 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1504, allocations: 0 / 367.2 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006326/0.151, allocations: 0.5366 MB / 367.7 MB, free: 3.992 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003172/0.1514, allocations: 244.4 kB / 368 MB, free: 3.734 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.352e-05/0.1514, allocations: 12 kB / 368 MB, free: 3.723 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/0.1516, allocations: 19.92 kB / 368 MB, free: 3.703 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.1517, allocations: 27.97 kB / 368 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.298e-05/0.1517, allocations: 47.91 kB / 368.1 MB, free: 3.629 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004626/0.1522, allocations: 386.9 kB / 368.5 MB, free: 3.254 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1522, allocations: 0 / 368.5 MB, free: 3.254 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002867/0.1525, allocations: 48 kB / 368.5 MB, free: 3.207 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.001027/0.1535, allocations: 1.082 MB / 369.6 MB, free: 2.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005313/0.1541, allocations: 433.5 kB / 370 MB, free: 1.598 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.1541, allocations: 4 kB / 370 MB, free: 1.594 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003505/0.1545, allocations: 377.5 kB / 370.4 MB, free: 1.176 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005663/0.155, allocations: 103.8 kB / 370.5 MB, free: 1.078 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1964/0.3515, allocations: 1.555 MB / 372 MB, free: 19.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002923/0.3518, allocations: 0.8016 MB / 372.8 MB, free: 19.01 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.152e-05/0.3519, allocations: 8.812 kB / 372.8 MB, free: 19 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.244e-05/0.3519, allocations: 27.75 kB / 372.9 MB, free: 19 MB / 302.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3519, allocations: 1.219 kB / 372.9 MB, free: 19 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01627/0.3682, allocations: 5.169 MB / 378 MB, free: 18.51 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001276/0.3684, allocations: 175.6 kB / 378.2 MB, free: 18.28 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.842/2.211, allocations: 0 / 378.2 MB, free: 18.28 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