Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",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.001094/0.001094, allocations: 93.88 kB / 16.3 MB, free: 6.457 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.001277/0.001277, allocations: 182.7 kB / 17.2 MB, free: 6.34 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.481/1.481, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002433/0.0002434, allocations: 6.594 kB / 300.8 MB, free: 6.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09809/0.09835, allocations: 50.42 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02002/0.1184, allocations: 21.38 MB / 372.6 MB, free: 6.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02701/0.1455, allocations: 19.66 MB / 392.2 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004436/0.15, allocations: 59.62 kB / 392.3 MB, free: 2.465 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005199/0.1552, allocations: 1.313 MB / 393.6 MB, free: 1.145 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01114/0.1664, allocations: 3.011 MB / 396.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005195/0.1716, allocations: 1.317 MB / 397.9 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02037/0.192, allocations: 11.97 MB / 409.9 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001635/0.1937, allocations: 0.795 MB / 410.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00301/0.1967, allocations: 1.8 MB / 412.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003128/0.1999, allocations: 1.926 MB / 414.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005173/0.2004, allocations: 80 kB / 414.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005095/0.2055, allocations: 1.464 MB / 416 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009626/0.2065, allocations: 0.504 MB / 416.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001974/0.2085, allocations: 1.17 MB / 417.7 MB, free: 9.016 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00592/0.2144, allocations: 4.615 MB / 422.3 MB, free: 4.387 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2145, allocations: 4 kB / 422.3 MB, free: 4.383 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.2145, allocations: 0 / 422.3 MB, free: 4.383 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002044/0.2147, allocations: 0 / 422.3 MB, free: 4.383 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.2098/0.4245, allocations: 5.824 MB / 428.1 MB, free: 61.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.4246, allocations: 11.11 kB / 428.1 MB, free: 61.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004996/0.4251, allocations: 158.5 kB / 428.3 MB, free: 61.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001412/0.4265, allocations: 0.7434 MB / 429 MB, free: 61.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009866/0.4364, allocations: 4.282 MB / 433.3 MB, free: 59.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.317e-05/0.4365, allocations: 69.16 kB / 433.4 MB, free: 59.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004612/0.437, allocations: 96.08 kB / 433.4 MB, free: 59.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002756/0.4397, allocations: 1.312 MB / 434.8 MB, free: 59.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/0.4398, allocations: 0 / 434.8 MB, free: 59.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001133/0.4399, allocations: 42.52 kB / 434.8 MB, free: 59.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.816e-05/0.44, allocations: 40.73 kB / 434.8 MB, free: 59.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002557/0.4425, allocations: 1.521 MB / 436.4 MB, free: 59.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01025/0.4528, allocations: 5.618 MB / 442 MB, free: 57.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001647/0.4545, allocations: 1.023 MB / 443 MB, free: 57.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04523/0.4997, allocations: 60.12 MB / 0.4913 GB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001004/0.5008, allocations: 0.5744 MB / 0.4919 GB, free: 9.918 MB / 366.1 MB Notification: Performance of pre-optimization done (n=85): time 2.775e-06/0.5008, allocations: 0 / 0.4919 GB, free: 9.918 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.00378/0.5046, allocations: 2.562 MB / 0.4944 GB, free: 7.211 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.532e-05/0.5046, allocations: 67.5 kB / 0.4945 GB, free: 7.137 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0071/0.5117, allocations: 5.519 MB / 0.4999 GB, free: 1.645 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000189/0.512, allocations: 45.64 kB / 0.4999 GB, free: 1.594 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002658/0.5146, allocations: 2.944 MB / 0.5028 GB, free: 14.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004545/0.5151, allocations: 294.6 kB / 0.5031 GB, free: 14.37 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.772e-05/0.5152, allocations: 32 kB / 0.5031 GB, free: 14.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.5153, allocations: 361.9 kB / 0.5034 GB, free: 13.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008758/0.5162, allocations: 427.5 kB / 0.5038 GB, free: 13.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001303/0.5175, allocations: 1.096 MB / 0.5049 GB, free: 12.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009935/0.5185, allocations: 0.5722 MB / 0.5055 GB, free: 11.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.167e-05/0.5186, allocations: 8 kB / 0.5055 GB, free: 11.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003995/0.5226, allocations: 2.238 MB / 0.5077 GB, free: 9.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.566e-05/0.5226, allocations: 20.03 kB / 0.5077 GB, free: 9.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002253/0.5229, allocations: 163.4 kB / 0.5078 GB, free: 9.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.473e-05/0.5229, allocations: 36.56 kB / 0.5079 GB, free: 9.109 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/0.5241, allocations: 367.4 kB / 0.5082 GB, free: 8.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.037e-05/0.5242, allocations: 47.8 kB / 0.5083 GB, free: 8.703 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002295/0.5265, allocations: 198.2 kB / 0.5085 GB, free: 8.508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002115/0.5267, allocations: 123.9 kB / 0.5086 GB, free: 8.391 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001548/0.5282, allocations: 0.7137 MB / 0.5093 GB, free: 7.668 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001042/0.5293, allocations: 0.7179 MB / 0.51 GB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005381/0.5347, allocations: 2.236 MB / 0.5122 GB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.165e-05/0.5347, allocations: 8 kB / 0.5122 GB, free: 4.711 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.5347, allocations: 0 / 0.5122 GB, free: 4.711 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.5347, allocations: 7.984 kB / 0.5122 GB, free: 4.703 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005978/0.5407, allocations: 3.628 MB / 0.5157 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002151/0.541, allocations: 136 kB / 0.5158 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007729/0.5418, allocations: 163.9 kB / 0.516 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.416e-06/0.5418, allocations: 4 kB / 0.516 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.919e-05/0.5419, allocations: 59.98 kB / 0.5161 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.185e-06/0.5419, allocations: 4 kB / 0.5161 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.5419, allocations: 3.938 kB / 0.5161 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00378/0.5457, allocations: 2.308 MB / 0.5183 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002146/0.5479, allocations: 0.8083 MB / 0.5191 GB, free: 13.47 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008287/0.5487, allocations: 12 kB / 0.5191 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001207/0.5499, allocations: 43.95 kB / 0.5192 GB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002139/0.5502, allocations: 108.4 kB / 0.5193 GB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001231/0.5503, allocations: 68 kB / 0.5193 GB, free: 13.24 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00533/0.5556, allocations: 3.534 MB / 0.5228 GB, free: 9.738 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.412e-06/0.5557, allocations: 0 / 0.5228 GB, free: 9.738 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002848/0.5585, allocations: 1.076 MB / 0.5238 GB, free: 8.703 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * 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.005319/0.5639, allocations: 3.95 MB / 0.5277 GB, free: 4.781 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002445/0.5663, allocations: 1.459 MB / 0.5291 GB, free: 3.285 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.5663, allocations: 4 kB / 0.5291 GB, free: 3.281 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001136/0.5675, allocations: 0.7864 MB / 0.5299 GB, free: 2.445 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005413/0.5729, allocations: 1.134 MB / 0.531 GB, free: 1.312 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2627/0.8356, allocations: 58.72 MB / 0.5883 GB, free: 147.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00168/0.8373, allocations: 2.706 MB / 0.591 GB, free: 147.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002489/0.8398, allocations: 0.689 MB / 0.5917 GB, free: 147.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002121/0.842, allocations: 2.394 MB / 0.594 GB, free: 146.5 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/0.842, allocations: 1.859 kB / 0.594 GB, free: 146.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.135/0.9769, allocations: 102.2 MB / 0.6938 GB, free: 48.86 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001429/0.9771, allocations: 179 kB / 0.694 GB, free: 48.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.577/6.554, allocations: 0 / 0.694 GB, free: 48.62 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat