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.000852/0.0008523, allocations: 100.7 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009648/0.000965, allocations: 196.5 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 246 MB, free: 10.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002389/0.000239, allocations: 4 kB / 306.8 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.116, allocations: 51.49 MB / 358.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.2492/0.3653, allocations: 23.74 MB / 382 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03046/0.3958, allocations: 20.55 MB / 402.6 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006651/0.4025, allocations: 56.25 kB / 402.7 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005974/0.4085, allocations: 1.283 MB / 403.9 MB, free: 9.898 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01554/0.424, allocations: 2.629 MB / 406.6 MB, free: 7.859 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007371/0.4315, allocations: 1.236 MB / 407.8 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02033/0.4518, allocations: 11.99 MB / 419.8 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002565/0.4544, allocations: 0.7833 MB / 420.6 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004221/0.4587, allocations: 1.811 MB / 422.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005558/0.4642, allocations: 1.926 MB / 424.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007297/0.465, allocations: 76 kB / 424.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006768/0.4718, allocations: 1.365 MB / 425.8 MB, free: 8.992 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001085/0.4729, allocations: 0.5039 MB / 426.3 MB, free: 8.484 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003107/0.476, allocations: 1.17 MB / 427.4 MB, free: 7.305 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00752/0.4836, allocations: 4.782 MB / 432.2 MB, free: 2.508 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/0.4836, allocations: 8 kB / 432.2 MB, free: 2.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.4836, allocations: 0 / 432.2 MB, free: 2.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002774/0.4839, allocations: 0 / 432.2 MB, free: 2.5 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.01128/0.4952, allocations: 5.866 MB / 438.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.4952, allocations: 12.03 kB / 438.1 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004717/0.4957, allocations: 157.2 kB / 438.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0011/0.4968, allocations: 0.7449 MB / 439 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006903/0.5037, allocations: 4.304 MB / 443.3 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.476e-05/0.5038, allocations: 66 kB / 443.4 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002217/0.5041, allocations: 95.91 kB / 443.5 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002121/0.5062, allocations: 1.32 MB / 444.8 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.5062, allocations: 0 / 444.8 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001051/0.5063, allocations: 36 kB / 444.8 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.529e-05/0.5064, allocations: 35.97 kB / 444.8 MB, free: 5.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002347/0.5087, allocations: 1.523 MB / 446.4 MB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009558/0.5183, allocations: 5.662 MB / 452 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001644/0.52, allocations: 1.016 MB / 453 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001487/0.5215, allocations: 1.252 MB / 454.3 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05544/0.5769, allocations: 61.1 MB / 0.5033 GB, free: 6.531 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009766/0.5779, allocations: 0.5837 MB / 0.5039 GB, free: 5.934 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 2.995e-06/0.578, allocations: 4 kB / 0.5039 GB, free: 5.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.003579/0.5816, allocations: 1.926 MB / 0.5058 GB, free: 3.992 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.349e-05/0.5816, allocations: 75.89 kB / 0.5058 GB, free: 3.906 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006973/0.5886, allocations: 5.516 MB / 0.5112 GB, free: 14.41 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002305/0.5889, allocations: 37.7 kB / 0.5113 GB, free: 14.37 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002504/0.5914, allocations: 2.947 MB / 0.5141 GB, free: 11.41 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004413/0.5918, allocations: 295.8 kB / 0.5144 GB, free: 11.12 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.622e-05/0.5919, allocations: 32 kB / 0.5145 GB, free: 11.09 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.5921, allocations: 365.9 kB / 0.5148 GB, free: 10.73 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008337/0.5929, allocations: 419.8 kB / 0.5152 GB, free: 10.32 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001268/0.5942, allocations: 1.103 MB / 0.5163 GB, free: 8.887 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/0.5952, allocations: 0.5724 MB / 0.5168 GB, free: 8.312 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/0.5953, allocations: 8 kB / 0.5168 GB, free: 8.305 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003907/0.5992, allocations: 2.234 MB / 0.519 GB, free: 6.059 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.544e-05/0.5992, allocations: 16 kB / 0.519 GB, free: 6.043 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002327/0.5995, allocations: 164 kB / 0.5192 GB, free: 5.883 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.457e-05/0.5995, allocations: 40.06 kB / 0.5192 GB, free: 5.844 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0011/0.6006, allocations: 367.4 kB / 0.5196 GB, free: 5.484 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.033e-05/0.6007, allocations: 55.73 kB / 0.5196 GB, free: 5.434 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002412/0.6031, allocations: 198.1 kB / 0.5198 GB, free: 5.238 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002585/0.6034, allocations: 120 kB / 0.5199 GB, free: 5.121 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.002029/0.6054, allocations: 0.7202 MB / 0.5206 GB, free: 4.395 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001493/0.6069, allocations: 0.7101 MB / 0.5213 GB, free: 3.676 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005412/0.6123, allocations: 2.201 MB / 0.5235 GB, free: 1.461 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.6124, allocations: 4 kB / 0.5235 GB, free: 1.457 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.6124, allocations: 7.953 kB / 0.5235 GB, free: 1.449 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.116e-05/0.6124, allocations: 3.984 kB / 0.5235 GB, free: 1.445 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2734/0.8858, allocations: 3.635 MB / 0.5271 GB, free: 148.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000267/0.8861, allocations: 139.1 kB / 0.5272 GB, free: 148.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008419/0.8869, allocations: 168.9 kB / 0.5274 GB, free: 148.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.234e-05/0.8869, allocations: 3.641 kB / 0.5274 GB, free: 148.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001431/0.8871, allocations: 60.41 kB / 0.5274 GB, free: 148.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.127e-06/0.8871, allocations: 6.469 kB / 0.5274 GB, free: 148.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.8871, allocations: 2.625 kB / 0.5274 GB, free: 148.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004763/0.8919, allocations: 2.214 MB / 0.5296 GB, free: 148.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002202/0.8941, allocations: 0.8117 MB / 0.5304 GB, free: 147.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006991/0.8948, allocations: 18.73 kB / 0.5304 GB, free: 147.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/0.8959, allocations: 44.92 kB / 0.5304 GB, free: 147.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002759/0.8962, allocations: 96.86 kB / 0.5305 GB, free: 147.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001634/0.8963, allocations: 69.88 kB / 0.5306 GB, free: 147.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0076/0.9039, allocations: 3.537 MB / 0.534 GB, free: 146.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.21e-07/0.904, allocations: 3.875 kB / 0.5341 GB, free: 146.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005195/0.9092, allocations: 1.072 MB / 0.5351 GB, free: 146.5 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.007831/0.917, allocations: 3.803 MB / 0.5388 GB, free: 145 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002883/0.9199, allocations: 1.463 MB / 0.5402 GB, free: 144.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/0.92, allocations: 0 / 0.5402 GB, free: 144.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001321/0.9213, allocations: 0.7945 MB / 0.541 GB, free: 144 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006609/0.9279, allocations: 1.139 MB / 0.5421 GB, free: 143.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08616/1.014, allocations: 43.06 MB / 0.5842 GB, free: 103.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002475/1.017, allocations: 2.596 MB / 0.5867 GB, free: 101 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003069/1.02, allocations: 0.6846 MB / 0.5874 GB, free: 100.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002165/1.022, allocations: 2.393 MB / 0.5897 GB, free: 97.95 MB / 446.1 MB Notification: Performance of SimCode: time 1.212e-06/1.022, allocations: 0 / 0.5897 GB, free: 97.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3366/1.359, allocations: 103.6 MB / 0.6909 GB, free: 140.4 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002063/1.359, allocations: 194.7 kB / 0.6911 GB, free: 140.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.567/6.925, allocations: 0 / 0.6911 GB, free: 140.2 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