Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",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.001098/0.001097, allocations: 177.8 kB / 8.697 MB, free: 384 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.375/1.375, 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.0009301/0.0009301, allocations: 86.69 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.592e-05/1.595e-05, allocations: 8 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08372/0.08375, allocations: 47.58 MB / 363.2 MB, free: 6.98 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3144/0.3982, allocations: 101.5 MB / 464.6 MB, free: 10.15 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001886/0.3984, allocations: 77.64 kB / 464.7 MB, free: 10.11 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3804/0.7788, allocations: 85.03 MB / 0.5369 GB, free: 97.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.7789, allocations: 0 / 0.5369 GB, free: 97.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.142e-05/0.7789, allocations: 21.38 kB / 0.5369 GB, free: 97.8 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002934/0.7819, allocations: 1.62 MB / 0.5385 GB, free: 97.06 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.7819, allocations: 12.59 kB / 0.5385 GB, free: 97.06 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000292/0.7822, allocations: 194.4 kB / 0.5387 GB, free: 96.96 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001958/0.7842, allocations: 1.212 MB / 0.5398 GB, free: 96.54 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.7842, allocations: 12.12 kB / 0.5399 GB, free: 96.54 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.879e-05/0.7843, allocations: 21.42 kB / 0.5399 GB, free: 96.53 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006037/0.7849, allocations: 367.1 kB / 0.5402 GB, free: 96.53 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006702/0.7856, allocations: 405.5 kB / 0.5406 GB, free: 96.46 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.7856, allocations: 2.812 kB / 0.5406 GB, free: 96.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.45e-05/0.7857, allocations: 5.891 kB / 0.5406 GB, free: 96.46 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.914e-05/0.7857, allocations: 15.28 kB / 0.5406 GB, free: 96.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002931/0.7886, allocations: 1.587 MB / 0.5422 GB, free: 96.11 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003899/0.789, allocations: 270.1 kB / 0.5424 GB, free: 96.09 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004956/0.7895, allocations: 352.4 kB / 0.5428 GB, free: 96.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01473/0.8043, allocations: 18.18 MB / 0.5605 GB, free: 82.73 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003121/0.8046, allocations: 199.3 kB / 0.5607 GB, free: 82.68 MB / 410.7 MB Notification: Performance of pre-optimization done (n=29): time 2.224e-06/0.8046, allocations: 0 / 0.5607 GB, free: 82.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008786/0.8055, allocations: 481.8 kB / 0.5612 GB, free: 82.54 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.839e-05/0.8056, allocations: 169.3 kB / 0.5613 GB, free: 82.35 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001203/0.8068, allocations: 1.113 MB / 0.5624 GB, free: 82.15 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.792e-05/0.8069, allocations: 25.7 kB / 0.5625 GB, free: 82.12 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004692/0.8073, allocations: 0.7205 MB / 0.5632 GB, free: 81.95 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.919e-05/0.8074, allocations: 94.84 kB / 0.5632 GB, free: 81.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.525e-05/0.8074, allocations: 0 / 0.5632 GB, free: 81.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.208e-05/0.8075, allocations: 329.2 kB / 0.5636 GB, free: 81.59 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001461/0.8077, allocations: 96.66 kB / 0.5637 GB, free: 81.59 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002215/0.8079, allocations: 320 kB / 0.564 GB, free: 81.32 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002235/0.8081, allocations: 141.2 kB / 0.5641 GB, free: 81.32 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.137e-06/0.8081, allocations: 2.719 kB / 0.5641 GB, free: 81.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007578/0.8089, allocations: 0.6083 MB / 0.5647 GB, free: 81.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.8089, allocations: 7.438 kB / 0.5647 GB, free: 81.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.333e-05/0.809, allocations: 42.53 kB / 0.5647 GB, free: 81.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002566/0.8092, allocations: 133.4 kB / 0.5649 GB, free: 81.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004224/0.8097, allocations: 118.9 kB / 0.565 GB, free: 81.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004436/0.8101, allocations: 0.7016 MB / 0.5657 GB, free: 80.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006964/0.8108, allocations: 82.88 kB / 0.5657 GB, free: 80.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-05/0.8109, allocations: 34.88 kB / 0.5658 GB, free: 80.62 MB / 410.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.0001228/0.811, allocations: 125.7 kB / 0.5659 GB, free: 80.51 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005672/0.8116, allocations: 481.4 kB / 0.5664 GB, free: 80.38 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.8118, allocations: 191.3 kB / 0.5665 GB, free: 80.28 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001408/0.8132, allocations: 0.6572 MB / 0.5672 GB, free: 80.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.8132, allocations: 3.688 kB / 0.5672 GB, free: 80.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.8132, allocations: 0 / 0.5672 GB, free: 80.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.8132, allocations: 11.56 kB / 0.5672 GB, free: 80.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001525/0.8147, allocations: 1.172 MB / 0.5683 GB, free: 79.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.282e-05/0.8148, allocations: 40.73 kB / 0.5684 GB, free: 79.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002555/0.8151, allocations: 63.02 kB / 0.5684 GB, free: 79.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001873/0.8153, allocations: 116.9 kB / 0.5686 GB, free: 79.87 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.21e-05/0.8153, allocations: 19.97 kB / 0.5686 GB, free: 79.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004283/0.8157, allocations: 0.6874 MB / 0.5692 GB, free: 79.35 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.8158, allocations: 0 / 0.5692 GB, free: 79.35 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005833/0.8163, allocations: 0.6356 MB / 0.5699 GB, free: 79.03 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003848/0.8167, allocations: 282.2 kB / 0.5701 GB, free: 78.84 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001713/0.8169, allocations: 7.844 kB / 0.5701 GB, free: 78.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004677/0.8174, allocations: 37.7 kB / 0.5702 GB, free: 78.84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/0.8175, allocations: 46.59 kB / 0.5702 GB, free: 78.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.032e-05/0.8176, allocations: 22.17 kB / 0.5702 GB, free: 78.84 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008287/0.8184, allocations: 0.8345 MB / 0.5711 GB, free: 78.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.8184, allocations: 0 / 0.5711 GB, free: 78.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009995/0.8194, allocations: 342.3 kB / 0.5714 GB, free: 78.66 MB / 410.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.001679/0.8211, allocations: 1.916 MB / 0.5733 GB, free: 77.67 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006958/0.8218, allocations: 401.1 kB / 0.5736 GB, free: 77.61 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.8218, allocations: 0 / 0.5736 GB, free: 77.61 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003117/0.8221, allocations: 236 kB / 0.5739 GB, free: 77.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000736/0.8229, allocations: 235.3 kB / 0.5741 GB, free: 77.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00284/0.8257, allocations: 1.77 MB / 0.5758 GB, free: 76.92 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000443/0.8262, allocations: 1.189 MB / 0.577 GB, free: 76.2 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005784/0.8268, allocations: 174.2 kB / 0.5771 GB, free: 76.18 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004793/0.8273, allocations: 0.5557 MB / 0.5777 GB, free: 76.18 MB / 410.7 MB Notification: Performance of SimCode: time 6.51e-07/0.8273, allocations: 0 / 0.5777 GB, free: 76.18 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05748/0.8848, allocations: 29.1 MB / 0.6061 GB, free: 68.65 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001555/0.885, allocations: 135.6 kB / 0.6062 GB, free: 68.45 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.33/4.215, allocations: 0 / 0.6062 GB, free: 68.45 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat