Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001912/0.001913, allocations: 197.2 kB / 8.766 MB, free: 324 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008511/0.0008512, allocations: 100.5 kB / 286.7 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.084e-05/2.046e-05, allocations: 4 kB / 343.8 MB, free: 8.215 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1078, allocations: 51.48 MB / 395.3 MB, free: 4.695 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.401/0.5088, allocations: 104 MB / 499.3 MB, free: 5.434 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002162/0.5091, allocations: 73.88 kB / 499.3 MB, free: 5.398 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4664/0.9755, allocations: 95.05 MB / 0.5804 GB, free: 83.37 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.9756, allocations: 2.562 kB / 0.5804 GB, free: 83.37 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.938e-05/0.9756, allocations: 22 kB / 0.5805 GB, free: 83.37 MB / 442.7 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.003996/0.9796, allocations: 1.61 MB / 0.582 GB, free: 82.64 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.9797, allocations: 9.531 kB / 0.582 GB, free: 82.64 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005096/0.9802, allocations: 200.5 kB / 0.5822 GB, free: 82.54 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00239/0.9826, allocations: 1.212 MB / 0.5834 GB, free: 82.14 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.803e-05/0.9827, allocations: 6.625 kB / 0.5834 GB, free: 82.14 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/0.9828, allocations: 23.45 kB / 0.5835 GB, free: 82.14 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005939/0.9834, allocations: 357.9 kB / 0.5838 GB, free: 82.14 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006306/0.9841, allocations: 409.2 kB / 0.5842 GB, free: 82.06 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.9841, allocations: 0 / 0.5842 GB, free: 82.06 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.751e-05/0.9841, allocations: 6.422 kB / 0.5842 GB, free: 82.06 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.745e-05/0.9842, allocations: 10.97 kB / 0.5842 GB, free: 82.06 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003145/0.9873, allocations: 1.585 MB / 0.5857 GB, free: 81.72 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000341/0.9877, allocations: 264.2 kB / 0.586 GB, free: 81.7 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003562/0.988, allocations: 355 kB / 0.5863 GB, free: 81.68 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01564/1.004, allocations: 18.46 MB / 0.6044 GB, free: 67.96 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003288/1.004, allocations: 203 kB / 0.6046 GB, free: 67.91 MB / 442.7 MB Notification: Performance of pre-optimization done (n=29): time 3.647e-06/1.004, allocations: 3.406 kB / 0.6046 GB, free: 67.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=29): time 0.0007968/1.005, allocations: 475.8 kB / 0.605 GB, free: 67.78 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.309e-05/1.005, allocations: 169.4 kB / 0.6052 GB, free: 67.59 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001264/1.006, allocations: 1.102 MB / 0.6063 GB, free: 67.39 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.948e-05/1.006, allocations: 36.05 kB / 0.6063 GB, free: 67.36 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004585/1.007, allocations: 0.7183 MB / 0.607 GB, free: 67.19 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.831e-05/1.007, allocations: 92.97 kB / 0.6071 GB, free: 67.14 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.582e-05/1.007, allocations: 0 / 0.6071 GB, free: 67.14 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.744e-05/1.007, allocations: 328.8 kB / 0.6074 GB, free: 66.83 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001481/1.007, allocations: 100.2 kB / 0.6075 GB, free: 66.82 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002269/1.007, allocations: 320.6 kB / 0.6078 GB, free: 66.55 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002305/1.008, allocations: 145.8 kB / 0.6079 GB, free: 66.55 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/1.008, allocations: 2.906 kB / 0.6079 GB, free: 66.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007855/1.008, allocations: 0.5973 MB / 0.6085 GB, free: 66.42 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/1.008, allocations: 6.625 kB / 0.6085 GB, free: 66.42 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.044e-05/1.008, allocations: 40.94 kB / 0.6086 GB, free: 66.42 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002603/1.009, allocations: 136.3 kB / 0.6087 GB, free: 66.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004114/1.009, allocations: 114.6 kB / 0.6088 GB, free: 66.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005099/1.01, allocations: 0.7032 MB / 0.6095 GB, free: 65.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007057/1.01, allocations: 72.53 kB / 0.6096 GB, free: 65.87 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.413e-05/1.01, allocations: 33.53 kB / 0.6096 GB, free: 65.87 MB / 442.7 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 () * 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.0001362/1.011, allocations: 131.8 kB / 0.6097 GB, free: 65.76 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006081/1.011, allocations: 484.5 kB / 0.6102 GB, free: 65.61 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/1.011, allocations: 190.7 kB / 0.6104 GB, free: 65.52 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001453/1.013, allocations: 0.6561 MB / 0.611 GB, free: 65.45 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/1.013, allocations: 4.625 kB / 0.611 GB, free: 65.45 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/1.013, allocations: 0 / 0.611 GB, free: 65.45 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/1.013, allocations: 3.953 kB / 0.611 GB, free: 65.45 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001688/1.015, allocations: 1.157 MB / 0.6121 GB, free: 65.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.521e-05/1.015, allocations: 36.28 kB / 0.6122 GB, free: 65.13 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002868/1.015, allocations: 67.44 kB / 0.6122 GB, free: 65.13 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002078/1.015, allocations: 113.7 kB / 0.6123 GB, free: 65.12 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.629e-05/1.015, allocations: 22.44 kB / 0.6124 GB, free: 65.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004529/1.016, allocations: 0.6942 MB / 0.613 GB, free: 64.6 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/1.016, allocations: 3.219 kB / 0.613 GB, free: 64.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000707/1.016, allocations: 0.6272 MB / 0.6137 GB, free: 64.29 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003955/1.017, allocations: 279.1 kB / 0.6139 GB, free: 64.11 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000154/1.017, allocations: 7.188 kB / 0.6139 GB, free: 64.11 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004515/1.017, allocations: 39.53 kB / 0.614 GB, free: 64.11 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/1.018, allocations: 41.12 kB / 0.614 GB, free: 64.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-05/1.018, allocations: 18.25 kB / 0.614 GB, free: 64.11 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0009472/1.019, allocations: 0.8289 MB / 0.6148 GB, free: 63.96 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.019, allocations: 0 / 0.6148 GB, free: 63.96 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001065/1.02, allocations: 346.4 kB / 0.6152 GB, free: 63.91 MB / 442.7 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) * 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.001756/1.021, allocations: 1.92 MB / 0.617 GB, free: 62.94 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0007228/1.022, allocations: 409 kB / 0.6174 GB, free: 62.86 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/1.022, allocations: 0 / 0.6174 GB, free: 62.86 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003323/1.022, allocations: 235.2 kB / 0.6177 GB, free: 62.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001221/1.024, allocations: 287.2 kB / 0.6179 GB, free: 62.78 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003778/1.027, allocations: 1.757 MB / 0.6196 GB, free: 62.19 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006187/1.028, allocations: 1.179 MB / 0.6208 GB, free: 61.48 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007066/1.029, allocations: 177.1 kB / 0.621 GB, free: 61.46 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005233/1.029, allocations: 0.554 MB / 0.6215 GB, free: 61.46 MB / 442.7 MB Notification: Performance of SimCode: time 2.484e-06/1.029, allocations: 0 / 0.6215 GB, free: 61.46 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06418/1.094, allocations: 29.02 MB / 0.6498 GB, free: 59.87 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00018/1.094, allocations: 133.8 kB / 0.65 GB, free: 59.68 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.213/4.307, allocations: 5.656 kB / 0.65 GB, free: 59.68 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat