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.000951/0.000951, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.001012/0.001012, allocations: 178.4 kB / 17.2 MB, free: 5.914 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.425/1.425, allocations: 223.2 MB / 241.1 MB, free: 5.234 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002549/0.0002549, allocations: 5.781 kB / 300.8 MB, free: 5.551 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1152, allocations: 50.43 MB / 351.2 MB, free: 11.31 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.INV3S): time 0.001443/0.1167, allocations: 1.194 MB / 352.4 MB, free: 10.11 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001452/0.1182, allocations: 0.8125 MB / 353.2 MB, free: 9.293 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.038e-05/0.1182, allocations: 0 / 353.2 MB, free: 9.293 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.982e-05/0.1183, allocations: 15.92 kB / 353.3 MB, free: 9.277 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.013e-05/0.1184, allocations: 19.91 kB / 353.3 MB, free: 9.258 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001957/0.1186, allocations: 31.95 kB / 353.3 MB, free: 9.227 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001118/0.1187, allocations: 75.84 kB / 353.4 MB, free: 9.152 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.005e-05/0.1188, allocations: 8 kB / 353.4 MB, free: 9.145 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003332/0.1191, allocations: 291.4 kB / 353.7 MB, free: 8.859 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001062/0.1193, allocations: 75.8 kB / 353.7 MB, free: 8.785 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.647e-05/0.1193, allocations: 8 kB / 353.8 MB, free: 8.777 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.463e-05/0.1193, allocations: 4 kB / 353.8 MB, free: 8.773 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.717e-05/0.1194, allocations: 59.83 kB / 353.8 MB, free: 8.715 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.759e-05/0.1195, allocations: 73.52 kB / 353.9 MB, free: 8.637 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002266/0.1197, allocations: 283.3 kB / 354.2 MB, free: 8.359 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.1197, allocations: 3.938 kB / 354.2 MB, free: 8.355 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.1197, allocations: 0 / 354.2 MB, free: 8.355 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.1197, allocations: 3.938 kB / 354.2 MB, free: 8.352 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.0005666/0.1203, allocations: 0.6566 MB / 354.8 MB, free: 7.621 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.1203, allocations: 12.03 kB / 354.8 MB, free: 7.609 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.783e-05/0.1204, allocations: 42.55 kB / 354.9 MB, free: 7.559 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.025e-05/0.1205, allocations: 39.53 kB / 354.9 MB, free: 7.52 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002773/0.1207, allocations: 261.3 kB / 355.2 MB, free: 7.223 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.1208, allocations: 4 kB / 355.2 MB, free: 7.219 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.546e-05/0.1208, allocations: 12 kB / 355.2 MB, free: 7.207 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000258/0.1211, allocations: 117.6 kB / 355.3 MB, free: 7.086 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.951e-06/0.1211, allocations: 0 / 355.3 MB, free: 7.086 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.415e-05/0.1211, allocations: 11.94 kB / 355.3 MB, free: 7.074 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.1211, allocations: 0 / 355.3 MB, free: 7.074 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001215/0.1212, allocations: 63.97 kB / 355.4 MB, free: 7.012 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006089/0.1219, allocations: 460.4 kB / 355.8 MB, free: 6.512 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001602/0.122, allocations: 102.5 kB / 355.9 MB, free: 6.402 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.082e-06/0.1221, allocations: 4 kB / 355.9 MB, free: 6.398 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002946/0.1224, allocations: 210.7 kB / 356.1 MB, free: 6.168 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.342e-06/0.1224, allocations: 0 / 356.1 MB, free: 6.168 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007572/0.1231, allocations: 0.6114 MB / 356.8 MB, free: 5.492 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.724e-05/0.1232, allocations: 162.2 kB / 356.9 MB, free: 5.297 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005621/0.1238, allocations: 0.5246 MB / 357.4 MB, free: 4.766 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.262e-05/0.1238, allocations: 29.7 kB / 357.5 MB, free: 4.73 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.354e-05/0.1239, allocations: 97.14 kB / 357.6 MB, free: 4.633 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.512e-05/0.1239, allocations: 27.64 kB / 357.6 MB, free: 4.605 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.244e-05/0.1239, allocations: 8 kB / 357.6 MB, free: 4.598 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.1241, allocations: 322.9 kB / 357.9 MB, free: 4.273 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.1242, allocations: 59.91 kB / 358 MB, free: 4.215 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001137/0.1243, allocations: 69.69 kB / 358 MB, free: 4.141 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000151/0.1245, allocations: 166.8 kB / 358.2 MB, free: 3.953 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1245, allocations: 0 / 358.2 MB, free: 3.953 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004697/0.1249, allocations: 384.1 kB / 358.6 MB, free: 3.547 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.362e-05/0.125, allocations: 130.8 kB / 358.7 MB, free: 3.395 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.125, allocations: 0 / 358.7 MB, free: 3.395 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.125, allocations: 3.984 kB / 358.7 MB, free: 3.391 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.848e-05/0.1251, allocations: 0 / 358.7 MB, free: 3.391 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.1251, allocations: 4 kB / 358.7 MB, free: 3.387 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001448/0.1252, allocations: 11.94 kB / 358.7 MB, free: 3.375 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.762e-05/0.1253, allocations: 43.98 kB / 358.8 MB, free: 3.332 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.0002965/0.1256, allocations: 358.3 kB / 359.1 MB, free: 2.949 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.341e-05/0.1257, allocations: 43.58 kB / 359.2 MB, free: 2.906 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.817e-05/0.1258, allocations: 67.14 kB / 359.2 MB, free: 2.832 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.1258, allocations: 0 / 359.2 MB, free: 2.832 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.1258, allocations: 3.938 kB / 359.2 MB, free: 2.828 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.1258, allocations: 0 / 359.2 MB, free: 2.828 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000837/0.1266, allocations: 0.8134 MB / 360 MB, free: 1.934 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1266, allocations: 0 / 360 MB, free: 1.934 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.967e-06/0.1266, allocations: 0 / 360 MB, free: 1.934 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.1267, allocations: 0 / 360 MB, free: 1.934 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.521e-05/0.1267, allocations: 19.98 kB / 360.1 MB, free: 1.914 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1267, allocations: 0 / 360.1 MB, free: 1.914 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1267, allocations: 0 / 360.1 MB, free: 1.914 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000557/0.1273, allocations: 0.5174 MB / 360.6 MB, free: 1.355 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002959/0.1276, allocations: 256.3 kB / 360.8 MB, free: 1.086 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.927e-05/0.1276, allocations: 8 kB / 360.8 MB, free: 1.078 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/0.1278, allocations: 16.23 kB / 360.8 MB, free: 1.062 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.214e-05/0.1279, allocations: 31.91 kB / 360.9 MB, free: 1.031 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.215e-05/0.1279, allocations: 55.86 kB / 360.9 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004102/0.1283, allocations: 386.9 kB / 361.3 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1284, allocations: 0 / 361.3 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002918/0.1286, allocations: 48 kB / 361.4 MB, free: 0.5508 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.0008517/0.1295, allocations: 1.084 MB / 362.4 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004454/0.13, allocations: 441.5 kB / 362.9 MB, free: 14.94 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.13, allocations: 0 / 362.9 MB, free: 14.94 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002819/0.1303, allocations: 373.6 kB / 363.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004732/0.1307, allocations: 107.3 kB / 363.3 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002076/0.1328, allocations: 1.598 MB / 364.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003824/0.1332, allocations: 0.8064 MB / 365.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.106e-05/0.1333, allocations: 16.62 kB / 365.8 MB, free: 11.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.079e-05/0.1333, allocations: 23.44 kB / 365.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1333, allocations: 0 / 365.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01463/0.148, allocations: 5.148 MB / 370.9 MB, free: 6.836 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001852/0.1482, allocations: 178 kB / 371.1 MB, free: 6.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.867/2.015, allocations: 0 / 371.1 MB, free: 6.59 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