Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter",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.0009604/0.0009603, allocations: 91.44 kB / 16.31 MB, free: 6.008 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.001346/0.001347, allocations: 182.8 kB / 17.21 MB, free: 5.902 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.301/1.301, allocations: 223.2 MB / 241.2 MB, free: 344 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002532/0.0002532, allocations: 9.469 kB / 300.9 MB, free: 6.348 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1156, allocations: 50.42 MB / 351.3 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.00671/0.1223, allocations: 7.055 MB / 358.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2185/0.3409, allocations: 17.66 MB / 376.1 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009752/0.3419, allocations: 34.78 kB / 376.1 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002347/0.3443, allocations: 0.7101 MB / 376.8 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00597/0.3503, allocations: 1.416 MB / 378.2 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005499/0.3558, allocations: 1.039 MB / 379.3 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006038/0.3619, allocations: 3.046 MB / 382.3 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005147/0.3624, allocations: 204.8 kB / 382.5 MB, free: 7.652 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001007/0.3634, allocations: 498.2 kB / 383 MB, free: 7.512 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006224/0.3641, allocations: 0.5155 MB / 383.5 MB, free: 7.324 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.965e-05/0.3642, allocations: 22.31 kB / 383.5 MB, free: 7.324 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005283/0.3695, allocations: 1.315 MB / 384.8 MB, free: 7.242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002152/0.3697, allocations: 142.5 kB / 385 MB, free: 7.184 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005778/0.3703, allocations: 321 kB / 385.3 MB, free: 7.098 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002313/0.3726, allocations: 1.568 MB / 386.9 MB, free: 6.895 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3726, allocations: 0 / 386.9 MB, free: 6.895 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3726, allocations: 0 / 386.9 MB, free: 6.895 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.447e-05/0.3727, allocations: 1.125 kB / 386.9 MB, free: 6.895 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003259/0.3759, allocations: 1.804 MB / 388.7 MB, free: 5.777 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.376, allocations: 14.12 kB / 388.7 MB, free: 5.773 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.738e-05/0.3761, allocations: 65.69 kB / 388.7 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000207/0.3763, allocations: 195.4 kB / 388.9 MB, free: 5.637 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001911/0.3782, allocations: 1.285 MB / 390.2 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.753e-05/0.3783, allocations: 23.09 kB / 390.2 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.447e-05/0.3784, allocations: 24.75 kB / 390.3 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001077/0.3795, allocations: 457.5 kB / 390.7 MB, free: 5.117 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.3795, allocations: 1.156 kB / 390.7 MB, free: 5.117 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.435e-05/0.3795, allocations: 8.344 kB / 390.7 MB, free: 5.117 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.404e-05/0.3796, allocations: 13.84 kB / 390.7 MB, free: 5.113 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001119/0.3807, allocations: 0.5096 MB / 391.2 MB, free: 5.035 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002579/0.3833, allocations: 1.628 MB / 392.9 MB, free: 4.344 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008693/0.3842, allocations: 414.3 kB / 393.3 MB, free: 4.258 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007038/0.3849, allocations: 443.1 kB / 393.7 MB, free: 4.199 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01546/0.4003, allocations: 15.21 MB / 408.9 MB, free: 6.984 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006294/0.401, allocations: 277.3 kB / 409.2 MB, free: 6.746 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.304e-06/0.401, allocations: 0 / 409.2 MB, free: 6.746 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.00207/0.4031, allocations: 0.9123 MB / 410.1 MB, free: 5.926 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.053e-05/0.4032, allocations: 63.34 kB / 410.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001685/0.4049, allocations: 1.446 MB / 411.6 MB, free: 4.727 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.612e-05/0.4049, allocations: 29.14 kB / 411.6 MB, free: 4.695 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005922/0.4055, allocations: 0.7103 MB / 412.3 MB, free: 4.242 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.14e-05/0.4056, allocations: 99.11 kB / 412.4 MB, free: 4.148 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.734e-05/0.4057, allocations: 12 kB / 412.5 MB, free: 4.137 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.4058, allocations: 322 kB / 412.8 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004209/0.4062, allocations: 185 kB / 412.9 MB, free: 3.633 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005586/0.4068, allocations: 383.4 kB / 413.3 MB, free: 3.172 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004679/0.4073, allocations: 232 kB / 413.5 MB, free: 2.949 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.4073, allocations: 0 / 413.5 MB, free: 2.949 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001356/0.4086, allocations: 0.79 MB / 414.3 MB, free: 2.148 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.4087, allocations: 11.98 kB / 414.4 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.54e-05/0.4087, allocations: 40 kB / 414.4 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003095/0.409, allocations: 140.4 kB / 414.5 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000387/0.4094, allocations: 115.8 kB / 414.6 MB, free: 1.848 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006096/0.4101, allocations: 0.6773 MB / 415.3 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007295/0.4108, allocations: 80.41 kB / 415.4 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.229e-05/0.4109, allocations: 36 kB / 415.4 MB, free: 1.031 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0004901/0.4114, allocations: 284.1 kB / 415.7 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001766/0.4116, allocations: 181.8 kB / 415.9 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001872/0.4134, allocations: 0.786 MB / 416.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.4135, allocations: 0 / 416.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.4135, allocations: 0 / 416.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.4135, allocations: 3.984 kB / 416.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002237/0.4157, allocations: 1.351 MB / 418 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.321e-05/0.4158, allocations: 35.98 kB / 418.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002321/0.416, allocations: 53.45 kB / 418.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002314/0.4163, allocations: 132.8 kB / 418.2 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.016e-05/0.4163, allocations: 19.95 kB / 418.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000547/0.4169, allocations: 0.6656 MB / 418.9 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.4169, allocations: 3.938 kB / 418.9 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001291/0.4182, allocations: 0.7514 MB / 419.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004646/0.4187, allocations: 284.8 kB / 420 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001458/0.4188, allocations: 4 kB / 420 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004056/0.4192, allocations: 35.97 kB / 420 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.4193, allocations: 51.88 kB / 420.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.875e-05/0.4194, allocations: 19.94 kB / 420.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001311/0.4207, allocations: 0.9415 MB / 421 MB, free: 11.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.4207, allocations: 0 / 421 MB, free: 11.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001122/0.4219, allocations: 331.8 kB / 421.3 MB, free: 10.95 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002487/0.4244, allocations: 1.749 MB / 423.1 MB, free: 9.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001289/0.4257, allocations: 0.5455 MB / 423.6 MB, free: 8.715 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.4257, allocations: 4 kB / 423.6 MB, free: 8.711 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006278/0.4263, allocations: 315.4 kB / 423.9 MB, free: 8.391 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001488/0.4278, allocations: 308.8 kB / 424.2 MB, free: 8.086 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01741/0.4452, allocations: 8.115 MB / 432.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006338/0.4459, allocations: 1.153 MB / 433.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007627/0.4467, allocations: 203.9 kB / 433.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005767/0.4473, allocations: 0.5579 MB / 434.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4473, allocations: 0 / 434.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05784/0.5051, allocations: 32.79 MB / 467.1 MB, free: 12.93 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001823/0.5053, allocations: 212.1 kB / 467.3 MB, free: 12.69 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.74/3.245, allocations: 2.078 kB / 467.3 MB, free: 12.69 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat