Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001156/0.001157, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.453/1.453, allocations: 205.3 MB / 214.4 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009442/0.0009443, allocations: 92.09 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.623e-05/1.625e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09055/0.09058, allocations: 47.58 MB / 363.2 MB, free: 6.98 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3825/0.4731, allocations: 101.9 MB / 465.1 MB, free: 9.723 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002015/0.4734, allocations: 77.45 kB / 465.2 MB, free: 9.684 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6612/1.135, allocations: 186.8 MB / 0.6367 GB, free: 45.65 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.764e-06/1.135, allocations: 4 kB / 0.6368 GB, free: 45.64 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002181/1.135, allocations: 92 kB / 0.6368 GB, free: 45.55 MB / 410.7 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.007518/1.142, allocations: 4.668 MB / 0.6414 GB, free: 40.82 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/1.142, allocations: 12.03 kB / 0.6414 GB, free: 40.81 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001/1.143, allocations: 0.7526 MB / 0.6421 GB, free: 40.05 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00702/1.15, allocations: 4.516 MB / 0.6466 GB, free: 35.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.307e-05/1.151, allocations: 31.95 kB / 0.6466 GB, free: 35.42 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002301/1.151, allocations: 67.89 kB / 0.6466 GB, free: 35.35 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00165/1.152, allocations: 1.313 MB / 0.6479 GB, free: 34.04 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00167/1.154, allocations: 1.328 MB / 0.6492 GB, free: 32.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/1.154, allocations: 0 / 0.6492 GB, free: 32.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001168/1.154, allocations: 4 kB / 0.6492 GB, free: 32.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.724e-05/1.154, allocations: 39.97 kB / 0.6493 GB, free: 32.6 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01046/1.165, allocations: 5.657 MB / 0.6548 GB, free: 26.86 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/1.166, allocations: 0.8583 MB / 0.6556 GB, free: 25.99 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009415/1.167, allocations: 1.123 MB / 0.6567 GB, free: 24.86 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3377/1.505, allocations: 71.85 MB / 0.7269 GB, free: 55.23 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006292/1.505, allocations: 0.4915 MB / 0.7274 GB, free: 55.18 MB / 426.7 MB Notification: Performance of pre-optimization done (n=85): time 3.035e-06/1.505, allocations: 0 / 0.7274 GB, free: 55.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=85): time 0.002564/1.508, allocations: 1.429 MB / 0.7288 GB, free: 54.76 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/1.508, allocations: 483 kB / 0.7292 GB, free: 54.2 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007142/1.515, allocations: 4.409 MB / 0.7335 GB, free: 53.78 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003644/1.516, allocations: 28.58 kB / 0.7336 GB, free: 53.75 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002773/1.518, allocations: 2.939 MB / 0.7364 GB, free: 53.4 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004316/1.519, allocations: 286 kB / 0.7367 GB, free: 53.26 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.234e-05/1.519, allocations: 0 / 0.7367 GB, free: 53.26 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/1.519, allocations: 371.4 kB / 0.7371 GB, free: 52.95 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004643/1.52, allocations: 313.1 kB / 0.7374 GB, free: 52.95 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008005/1.52, allocations: 1.081 MB / 0.7384 GB, free: 51.96 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007709/1.521, allocations: 495.2 kB / 0.7389 GB, free: 51.94 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.175e-05/1.521, allocations: 7.75 kB / 0.7389 GB, free: 51.94 MB / 426.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003269/1.524, allocations: 1.92 MB / 0.7408 GB, free: 51.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.224e-05/1.524, allocations: 20.23 kB / 0.7408 GB, free: 51.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002046/1.525, allocations: 164.2 kB / 0.7409 GB, free: 51.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.285e-05/1.525, allocations: 34.5 kB / 0.741 GB, free: 51.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001158/1.526, allocations: 370.1 kB / 0.7413 GB, free: 51.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.294e-05/1.526, allocations: 47.97 kB / 0.7414 GB, free: 51.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002905/1.529, allocations: 183.6 kB / 0.7416 GB, free: 51.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001861/1.529, allocations: 121.6 kB / 0.7417 GB, free: 51.5 MB / 426.7 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 () * 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.0002945/1.529, allocations: 174.2 kB / 0.7418 GB, free: 51.39 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002745/1.532, allocations: 1.434 MB / 0.7432 GB, free: 50.97 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008245/1.533, allocations: 0.7228 MB / 0.7439 GB, free: 50.6 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005524/1.538, allocations: 2.094 MB / 0.746 GB, free: 50.46 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-05/1.539, allocations: 11.86 kB / 0.746 GB, free: 50.46 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/1.539, allocations: 8.141 kB / 0.746 GB, free: 50.46 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/1.539, allocations: 3.328 kB / 0.746 GB, free: 50.46 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006896/1.545, allocations: 3.549 MB / 0.7495 GB, free: 50.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001716/1.546, allocations: 139.6 kB / 0.7496 GB, free: 50.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007861/1.546, allocations: 169.2 kB / 0.7498 GB, free: 50.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.018e-05/1.546, allocations: 6.531 kB / 0.7498 GB, free: 50.07 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.475e-05/1.547, allocations: 49.58 kB / 0.7498 GB, free: 50.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/1.547, allocations: 3.969 kB / 0.7498 GB, free: 50.07 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/1.547, allocations: 0 / 0.7498 GB, free: 50.07 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002863/1.549, allocations: 2.054 MB / 0.7518 GB, free: 49.38 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002108/1.552, allocations: 0.9392 MB / 0.7528 GB, free: 48.84 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008339/1.552, allocations: 3.719 kB / 0.7528 GB, free: 48.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001333/1.554, allocations: 40.61 kB / 0.7528 GB, free: 48.84 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001988/1.554, allocations: 100.9 kB / 0.7529 GB, free: 48.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001214/1.554, allocations: 69.88 kB / 0.753 GB, free: 48.84 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006704/1.561, allocations: 3.251 MB / 0.7561 GB, free: 48.59 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.561, allocations: 0 / 0.7561 GB, free: 48.59 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004307/1.565, allocations: 1.13 MB / 0.7572 GB, free: 48.57 MB / 426.7 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) * 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.005256/1.57, allocations: 3.882 MB / 0.761 GB, free: 47.32 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001785/1.572, allocations: 1.252 MB / 0.7622 GB, free: 47.06 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/1.572, allocations: 0 / 0.7622 GB, free: 47.06 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007572/1.573, allocations: 0.7081 MB / 0.7629 GB, free: 46.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004187/1.577, allocations: 0.95 MB / 0.7639 GB, free: 46.74 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01401/1.591, allocations: 6.91 MB / 0.7706 GB, free: 44.76 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001762/1.593, allocations: 2.722 MB / 0.7733 GB, free: 43.98 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002709/1.596, allocations: 0.7307 MB / 0.774 GB, free: 43.93 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002026/1.598, allocations: 2.434 MB / 0.7764 GB, free: 43.93 MB / 426.7 MB Notification: Performance of SimCode: time 1.843e-06/1.598, allocations: 0 / 0.7764 GB, free: 43.93 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4225/2.02, allocations: 99.29 MB / 0.8733 GB, free: 99.99 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002148/2.021, allocations: 135 kB / 0.8735 GB, free: 99.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.991/10.01, allocations: 1 kB / 0.8735 GB, free: 99.8 MB / 458.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat