Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009639/0.0009638, allocations: 100.3 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009786/0.0009786, allocations: 202.8 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002568/0.0002569, allocations: 7.984 kB / 306.7 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1117, allocations: 51.48 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.2262/0.3379, allocations: 21.38 MB / 379.6 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02808/0.366, allocations: 19.69 MB / 399.3 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005482/0.3716, allocations: 57.91 kB / 399.3 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005541/0.3771, allocations: 1.316 MB / 400.6 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01251/0.3897, allocations: 2.999 MB / 403.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007058/0.3968, allocations: 1.328 MB / 405 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02622/0.423, allocations: 12.08 MB / 417 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00208/0.4251, allocations: 0.7955 MB / 417.8 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004333/0.4295, allocations: 1.8 MB / 419.6 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004179/0.4337, allocations: 1.926 MB / 421.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006783/0.4344, allocations: 80 kB / 421.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006636/0.4411, allocations: 1.468 MB / 423.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009172/0.442, allocations: 0.5001 MB / 423.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002452/0.4445, allocations: 1.174 MB / 424.8 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007219/0.4517, allocations: 4.621 MB / 429.4 MB, free: 4.957 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.4517, allocations: 0 / 429.4 MB, free: 4.957 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.4517, allocations: 0 / 429.4 MB, free: 4.957 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003845/0.4521, allocations: 0 / 429.4 MB, free: 4.957 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.01225/0.4644, allocations: 5.831 MB / 435.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.4645, allocations: 8.031 kB / 435.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005823/0.465, allocations: 161.2 kB / 435.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001416/0.4665, allocations: 0.7409 MB / 436.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009638/0.4761, allocations: 4.281 MB / 440.4 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.747e-05/0.4762, allocations: 66 kB / 440.5 MB, free: 9.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002762/0.4765, allocations: 99.89 kB / 440.6 MB, free: 9.582 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002302/0.4788, allocations: 1.313 MB / 441.9 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.065e-05/0.4788, allocations: 4 kB / 441.9 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/0.479, allocations: 39.98 kB / 441.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.283e-05/0.479, allocations: 35.98 kB / 442 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00256/0.4816, allocations: 1.519 MB / 443.5 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01115/0.4928, allocations: 5.626 MB / 449.1 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001849/0.4946, allocations: 1.044 MB / 450.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06009/0.5547, allocations: 61.37 MB / 0.4995 GB, free: 10.04 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001018/0.5558, allocations: 0.5677 MB / 0.5001 GB, free: 9.461 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 2.624e-06/0.5558, allocations: 0 / 0.5001 GB, free: 9.461 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.003981/0.5598, allocations: 2.579 MB / 0.5026 GB, free: 6.723 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.277e-05/0.5599, allocations: 59.97 kB / 0.5027 GB, free: 6.652 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007904/0.5678, allocations: 5.516 MB / 0.5081 GB, free: 1.164 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002753/0.5681, allocations: 41.7 kB / 0.5081 GB, free: 1.117 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002583/0.5707, allocations: 2.943 MB / 0.511 GB, free: 14.16 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004943/0.5712, allocations: 307.8 kB / 0.5113 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.924e-05/0.5713, allocations: 28 kB / 0.5113 GB, free: 13.83 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.5714, allocations: 365.9 kB / 0.5116 GB, free: 13.46 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008501/0.5723, allocations: 415.8 kB / 0.512 GB, free: 13.06 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00116/0.5735, allocations: 1.103 MB / 0.5131 GB, free: 11.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009594/0.5744, allocations: 0.5647 MB / 0.5137 GB, free: 11.05 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/0.5745, allocations: 11.94 kB / 0.5137 GB, free: 11.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003661/0.5781, allocations: 2.23 MB / 0.5159 GB, free: 8.801 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.197e-05/0.5782, allocations: 16 kB / 0.5159 GB, free: 8.785 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002048/0.5784, allocations: 164 kB / 0.516 GB, free: 8.625 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.326e-05/0.5784, allocations: 36 kB / 0.5161 GB, free: 8.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/0.5796, allocations: 375.7 kB / 0.5164 GB, free: 8.223 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.697e-05/0.5797, allocations: 47.8 kB / 0.5165 GB, free: 8.176 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002266/0.5819, allocations: 206.1 kB / 0.5167 GB, free: 7.973 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002634/0.5822, allocations: 124 kB / 0.5168 GB, free: 7.852 MB / 446.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.001981/0.5842, allocations: 0.7038 MB / 0.5175 GB, free: 7.141 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001389/0.5856, allocations: 0.7218 MB / 0.5182 GB, free: 6.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005564/0.5912, allocations: 2.22 MB / 0.5203 GB, free: 4.176 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.315e-05/0.5912, allocations: 11.98 kB / 0.5204 GB, free: 4.164 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.5912, allocations: 3.953 kB / 0.5204 GB, free: 4.16 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.5912, allocations: 0 / 0.5204 GB, free: 4.16 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00655/0.5978, allocations: 3.638 MB / 0.5239 GB, free: 460 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001647/0.598, allocations: 136 kB / 0.524 GB, free: 324 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007363/0.5987, allocations: 167.8 kB / 0.5242 GB, free: 156 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.977e-06/0.5988, allocations: 4 kB / 0.5242 GB, free: 152 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.333e-05/0.5989, allocations: 66.17 kB / 0.5243 GB, free: 88 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.833e-06/0.5989, allocations: 7.938 kB / 0.5243 GB, free: 80 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.5989, allocations: 0 / 0.5243 GB, free: 80 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2183/0.8172, allocations: 2.305 MB / 0.5265 GB, free: 148.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002248/0.8195, allocations: 0.7965 MB / 0.5273 GB, free: 148 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000794/0.8203, allocations: 17.22 kB / 0.5273 GB, free: 148 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001213/0.8215, allocations: 46.8 kB / 0.5274 GB, free: 148 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002494/0.8218, allocations: 97.22 kB / 0.5275 GB, free: 148 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000139/0.8219, allocations: 68.52 kB / 0.5275 GB, free: 148 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006953/0.8289, allocations: 3.537 MB / 0.531 GB, free: 147.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.51e-07/0.8289, allocations: 0 / 0.531 GB, free: 147.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00329/0.8322, allocations: 1.078 MB / 0.532 GB, free: 147.2 MB / 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.005994/0.8382, allocations: 3.944 MB / 0.5359 GB, free: 145.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002694/0.8409, allocations: 1.468 MB / 0.5373 GB, free: 145 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.841, allocations: 3.938 kB / 0.5373 GB, free: 145 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001253/0.8422, allocations: 0.7851 MB / 0.5381 GB, free: 144.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006762/0.849, allocations: 1.125 MB / 0.5392 GB, free: 144.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09823/0.9473, allocations: 58.73 MB / 0.5965 GB, free: 90.48 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001876/0.9492, allocations: 2.709 MB / 0.5992 GB, free: 87.75 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00288/0.9521, allocations: 0.6885 MB / 0.5999 GB, free: 87.06 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00193/0.954, allocations: 2.397 MB / 0.6022 GB, free: 84.66 MB / 446.1 MB Notification: Performance of SimCode: time 7.11e-07/0.9541, allocations: 0 / 0.6022 GB, free: 84.66 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3602/1.314, allocations: 102.3 MB / 0.7021 GB, free: 142.8 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001429/1.314, allocations: 178.9 kB / 0.7022 GB, free: 142.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.433/6.747, allocations: 0 / 0.7022 GB, free: 142.6 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat