Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008186/0.0008188, allocations: 80.5 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008209/0.0008211, allocations: 181.8 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 223.3 MB / 241.2 MB, free: 5.414 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003471/0.0003473, allocations: 5.906 kB / 300.9 MB, free: 5.926 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1254, allocations: 50.43 MB / 351.3 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.INV3S): time 0.0022/0.1277, allocations: 1.199 MB / 352.5 MB, free: 10.39 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002479/0.1302, allocations: 0.8123 MB / 353.3 MB, free: 9.574 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.32e-05/0.1303, allocations: 8 kB / 353.4 MB, free: 9.566 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.03e-05/0.1304, allocations: 3.938 kB / 353.4 MB, free: 9.562 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001007/0.1305, allocations: 19.91 kB / 353.4 MB, free: 9.543 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002864/0.1308, allocations: 39.84 kB / 353.4 MB, free: 9.504 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001823/0.131, allocations: 103.8 kB / 353.5 MB, free: 9.402 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.1311, allocations: 23.91 kB / 353.5 MB, free: 9.379 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006043/0.1317, allocations: 355.3 kB / 353.9 MB, free: 9.031 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001563/0.1319, allocations: 71.83 kB / 354 MB, free: 8.961 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.401e-05/0.1319, allocations: 4 kB / 354 MB, free: 8.957 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.104e-05/0.132, allocations: 4 kB / 354 MB, free: 8.953 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.1321, allocations: 63.77 kB / 354 MB, free: 8.891 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.131e-05/0.1322, allocations: 73.52 kB / 354.1 MB, free: 8.812 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004501/0.1327, allocations: 283.3 kB / 354.4 MB, free: 8.535 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1327, allocations: 0 / 354.4 MB, free: 8.535 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1327, allocations: 0 / 354.4 MB, free: 8.535 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.1327, allocations: 4 kB / 354.4 MB, free: 8.531 MB / 286.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.0008875/0.1336, allocations: 0.6589 MB / 355 MB, free: 7.801 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.422e-05/0.1337, allocations: 12.03 kB / 355.1 MB, free: 7.789 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.788e-05/0.1337, allocations: 38.56 kB / 355.1 MB, free: 7.742 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.762e-05/0.1338, allocations: 39.53 kB / 355.1 MB, free: 7.703 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004694/0.1343, allocations: 253.3 kB / 355.4 MB, free: 7.414 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.75e-05/0.1344, allocations: 12 kB / 355.4 MB, free: 7.402 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.93e-05/0.1344, allocations: 4 kB / 355.4 MB, free: 7.398 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004142/0.1348, allocations: 125.6 kB / 355.5 MB, free: 7.27 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.1348, allocations: 0 / 355.5 MB, free: 7.27 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.207e-05/0.1349, allocations: 7.953 kB / 355.5 MB, free: 7.262 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.1349, allocations: 4 kB / 355.5 MB, free: 7.258 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001867/0.1351, allocations: 59.91 kB / 355.6 MB, free: 7.199 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008788/0.136, allocations: 468.6 kB / 356 MB, free: 6.691 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002395/0.1362, allocations: 94.5 kB / 356.1 MB, free: 6.59 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002014/0.1364, allocations: 88.83 kB / 356.2 MB, free: 6.5 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.233e-05/0.1365, allocations: 0 / 356.2 MB, free: 6.5 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004349/0.1369, allocations: 205.3 kB / 356.4 MB, free: 6.277 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.723e-06/0.1369, allocations: 0 / 356.4 MB, free: 6.277 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.001025/0.138, allocations: 464 kB / 356.9 MB, free: 5.793 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001229/0.1381, allocations: 166.2 kB / 357 MB, free: 5.594 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008869/0.139, allocations: 0.5245 MB / 357.6 MB, free: 5.062 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.915e-05/0.139, allocations: 37.7 kB / 357.6 MB, free: 5.02 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.352e-05/0.1391, allocations: 97.12 kB / 357.7 MB, free: 4.922 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.368e-05/0.1392, allocations: 19.72 kB / 357.7 MB, free: 4.902 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.967e-05/0.1392, allocations: 4 kB / 357.7 MB, free: 4.898 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000222/0.1394, allocations: 326.8 kB / 358 MB, free: 4.57 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001625/0.1396, allocations: 51.97 kB / 358.1 MB, free: 4.52 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001791/0.1398, allocations: 77.67 kB / 358.2 MB, free: 4.438 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002146/0.14, allocations: 162.8 kB / 358.3 MB, free: 4.254 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.14, allocations: 0 / 358.3 MB, free: 4.254 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007162/0.1408, allocations: 388.3 kB / 358.7 MB, free: 3.844 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001127/0.1409, allocations: 122.8 kB / 358.8 MB, free: 3.699 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.1409, allocations: 0 / 358.8 MB, free: 3.699 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.1409, allocations: 0 / 358.8 MB, free: 3.699 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.234e-05/0.141, allocations: 0 / 358.8 MB, free: 3.699 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.141, allocations: 0 / 358.8 MB, free: 3.699 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002064/0.1412, allocations: 23.83 kB / 358.8 MB, free: 3.676 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.881e-05/0.1413, allocations: 47.97 kB / 358.9 MB, free: 3.629 MB / 286.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.0004524/0.1417, allocations: 362.4 kB / 359.2 MB, free: 3.242 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.455e-05/0.1418, allocations: 39.58 kB / 359.3 MB, free: 3.203 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001868/0.142, allocations: 75.12 kB / 359.4 MB, free: 3.121 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.142, allocations: 0 / 359.4 MB, free: 3.121 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.142, allocations: 3.984 kB / 359.4 MB, free: 3.117 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.1421, allocations: 112 / 359.4 MB, free: 3.117 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001395/0.1435, allocations: 0.8083 MB / 360.2 MB, free: 2.23 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1435, allocations: 4 kB / 360.2 MB, free: 2.227 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.865e-06/0.1435, allocations: 0 / 360.2 MB, free: 2.227 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.1435, allocations: 3.938 kB / 360.2 MB, free: 2.223 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.622e-05/0.1435, allocations: 15.98 kB / 360.2 MB, free: 2.207 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1436, allocations: 0 / 360.2 MB, free: 2.207 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1436, allocations: 0 / 360.2 MB, free: 2.207 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008468/0.1444, allocations: 0.5252 MB / 360.7 MB, free: 1.641 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004299/0.1449, allocations: 256.3 kB / 361 MB, free: 1.371 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.901e-05/0.1449, allocations: 4 kB / 361 MB, free: 1.367 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001979/0.1451, allocations: 20 kB / 361 MB, free: 1.348 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001388/0.1453, allocations: 23.95 kB / 361 MB, free: 1.324 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.246e-05/0.1454, allocations: 47.94 kB / 361.1 MB, free: 1.277 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0006241/0.146, allocations: 382.9 kB / 361.4 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.146, allocations: 0 / 361.4 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000463/0.1465, allocations: 40 kB / 361.5 MB, free: 0.8633 MB / 286.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.0009326/0.1474, allocations: 1.093 MB / 362.6 MB, free: 15.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005074/0.148, allocations: 437.5 kB / 363 MB, free: 15.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.148, allocations: 3.938 kB / 363 MB, free: 15.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003038/0.1483, allocations: 373.6 kB / 363.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005589/0.1488, allocations: 109.6 kB / 363.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002367/0.1512, allocations: 1.567 MB / 365 MB, free: 13.1 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006175/0.1519, allocations: 0.7986 MB / 365.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.602e-05/0.1519, allocations: 8.656 kB / 365.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.501e-05/0.152, allocations: 23.44 kB / 365.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.152, allocations: 0 / 365.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02006/0.172, allocations: 5.17 MB / 371 MB, free: 7.168 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002523/0.1723, allocations: 185 kB / 371.2 MB, free: 6.926 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.952/2.124, allocations: 0 / 371.2 MB, free: 6.926 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S_res.mat does not exist to compare? outputFormat=mat