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.0009092/0.0009091, allocations: 88.16 kB / 16.31 MB, free: 5.559 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.0009081/0.0009082, allocations: 180.4 kB / 17.21 MB, free: 5.477 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.345/1.345, allocations: 223.3 MB / 241.2 MB, free: 14.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002944/0.0002945, allocations: 8 kB / 300.9 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1112, allocations: 50.41 MB / 351.3 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.2137/0.3249, allocations: 23.73 MB / 375.1 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02687/0.3518, allocations: 20.51 MB / 395.6 MB, free: 2.023 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005165/0.357, allocations: 59.69 kB / 395.6 MB, free: 2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006116/0.3632, allocations: 1.282 MB / 396.9 MB, free: 1.457 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01414/0.3774, allocations: 2.625 MB / 399.5 MB, free: 15.74 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006513/0.3839, allocations: 1.244 MB / 400.8 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02483/0.4088, allocations: 11.83 MB / 412.6 MB, free: 8.359 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002169/0.411, allocations: 0.7958 MB / 413.4 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003865/0.4149, allocations: 1.803 MB / 415.2 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003848/0.4188, allocations: 1.922 MB / 417.1 MB, free: 3.777 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006387/0.4194, allocations: 76 kB / 417.2 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007106/0.4266, allocations: 1.361 MB / 418.6 MB, free: 2.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001099/0.4277, allocations: 0.5078 MB / 419.1 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002911/0.4306, allocations: 1.17 MB / 420.2 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007829/0.4385, allocations: 4.771 MB / 425 MB, free: 11.86 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.078e-05/0.4385, allocations: 4 kB / 425 MB, free: 11.85 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.4385, allocations: 0 / 425 MB, free: 11.85 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002592/0.4388, allocations: 0 / 425 MB, free: 11.85 MB / 334.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.009978/0.4488, allocations: 5.866 MB / 430.9 MB, free: 5.898 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.4489, allocations: 12.03 kB / 430.9 MB, free: 5.887 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004652/0.4493, allocations: 153.2 kB / 431.1 MB, free: 5.727 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001291/0.4506, allocations: 0.7449 MB / 431.8 MB, free: 4.973 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008304/0.4589, allocations: 4.312 MB / 436.1 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.43e-05/0.4591, allocations: 66 kB / 436.2 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003102/0.4594, allocations: 96.97 kB / 436.3 MB, free: 428 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002582/0.462, allocations: 1.317 MB / 437.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.204e-05/0.462, allocations: 0 / 437.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001116/0.4621, allocations: 36 kB / 437.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.816e-05/0.4622, allocations: 39.97 kB / 437.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002833/0.465, allocations: 1.519 MB / 439.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01143/0.4765, allocations: 5.646 MB / 444.8 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0018/0.4783, allocations: 1.033 MB / 445.9 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001738/0.4801, allocations: 1.243 MB / 447.1 MB, free: 5.477 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05901/0.5391, allocations: 59.86 MB / 0.4951 GB, free: 1.434 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001072/0.5402, allocations: 0.5716 MB / 0.4956 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of pre-optimization done (n=85): time 3.697e-06/0.5403, allocations: 0 / 0.4956 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of matching and sorting (n=85): time 0.004142/0.5444, allocations: 1.938 MB / 0.4975 GB, free: 14.89 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.513e-05/0.5445, allocations: 63.91 kB / 0.4976 GB, free: 14.82 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007921/0.5524, allocations: 5.516 MB / 0.503 GB, free: 9.332 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001779/0.5526, allocations: 41.7 kB / 0.503 GB, free: 9.285 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002834/0.5555, allocations: 2.943 MB / 0.5059 GB, free: 6.328 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004494/0.556, allocations: 307.7 kB / 0.5062 GB, free: 6.023 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.793e-05/0.556, allocations: 24 kB / 0.5062 GB, free: 6 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.5562, allocations: 377.7 kB / 0.5066 GB, free: 5.629 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008612/0.5571, allocations: 415.8 kB / 0.507 GB, free: 5.227 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001276/0.5584, allocations: 1.106 MB / 0.508 GB, free: 3.785 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009878/0.5594, allocations: 0.5685 MB / 0.5086 GB, free: 3.219 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.247e-06/0.5594, allocations: 8 kB / 0.5086 GB, free: 3.211 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003634/0.563, allocations: 2.23 MB / 0.5108 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.287e-05/0.5631, allocations: 16 kB / 0.5108 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002219/0.5633, allocations: 164 kB / 0.511 GB, free: 0.793 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.136e-05/0.5634, allocations: 36 kB / 0.511 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/0.5645, allocations: 371.5 kB / 0.5113 GB, free: 404 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.905e-05/0.5645, allocations: 43.86 kB / 0.5114 GB, free: 360 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001692/0.5662, allocations: 194.2 kB / 0.5116 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000196/0.5664, allocations: 127.9 kB / 0.5117 GB, free: 36 kB / 430.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.001457/0.5679, allocations: 0.7121 MB / 0.5124 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008325/0.5687, allocations: 0.714 MB / 0.5131 GB, free: 14.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005151/0.5739, allocations: 2.205 MB / 0.5152 GB, free: 12.37 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.5739, allocations: 8 kB / 0.5152 GB, free: 12.36 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.5739, allocations: 0 / 0.5152 GB, free: 12.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.574, allocations: 7.922 kB / 0.5153 GB, free: 12.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00567/0.5796, allocations: 3.642 MB / 0.5188 GB, free: 8.645 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001995/0.5799, allocations: 144 kB / 0.5189 GB, free: 8.504 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000728/0.5806, allocations: 155.8 kB / 0.5191 GB, free: 8.352 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.686e-06/0.5806, allocations: 8 kB / 0.5191 GB, free: 8.344 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.874e-05/0.5807, allocations: 59.98 kB / 0.5192 GB, free: 8.285 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.766e-06/0.5807, allocations: 11.89 kB / 0.5192 GB, free: 8.273 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.5807, allocations: 0 / 0.5192 GB, free: 8.273 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003421/0.5842, allocations: 2.208 MB / 0.5213 GB, free: 6.035 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001473/0.5857, allocations: 0.8046 MB / 0.5221 GB, free: 5.203 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006302/0.5863, allocations: 20 kB / 0.5221 GB, free: 5.184 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.5873, allocations: 47.95 kB / 0.5222 GB, free: 5.137 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001895/0.5875, allocations: 100.4 kB / 0.5223 GB, free: 5.039 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001339/0.5877, allocations: 72.73 kB / 0.5223 GB, free: 4.969 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005311/0.593, allocations: 3.538 MB / 0.5258 GB, free: 1.461 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.593, allocations: 7.875 kB / 0.5258 GB, free: 1.453 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002767/0.5958, allocations: 1.077 MB / 0.5269 GB, free: 384 kB / 446.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.1999/0.7957, allocations: 3.796 MB / 0.5306 GB, free: 151.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002772/0.7985, allocations: 1.461 MB / 0.532 GB, free: 151.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.7985, allocations: 3.594 kB / 0.532 GB, free: 151.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00114/0.7996, allocations: 0.7906 MB / 0.5328 GB, free: 151.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004695/0.8043, allocations: 1.138 MB / 0.5339 GB, free: 151 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08097/0.8853, allocations: 43.06 MB / 0.5759 GB, free: 118.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002732/0.8881, allocations: 2.594 MB / 0.5785 GB, free: 116.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002953/0.8911, allocations: 0.6846 MB / 0.5791 GB, free: 115.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002309/0.8934, allocations: 2.389 MB / 0.5815 GB, free: 113.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/0.8934, allocations: 0 / 0.5815 GB, free: 113.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1432/1.037, allocations: 103.6 MB / 0.6827 GB, free: 9.949 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001685/1.037, allocations: 188 kB / 0.6828 GB, free: 9.707 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.669/6.706, allocations: 4 kB / 0.6828 GB, free: 9.703 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