Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_cpp_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.001684/0.001688, allocations: 186.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.018/2.018, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001145/0.001145, allocations: 97.23 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003946/0.0003947, allocations: 12 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3411/0.3415, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1659/0.5074, allocations: 102 MB / 476.6 MB, free: 10.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003412/0.5078, allocations: 75.97 kB / 476.7 MB, free: 10.65 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5535/1.061, allocations: 89.6 MB / 0.553 GB, free: 61.97 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.954e-06/1.061, allocations: 0 / 0.553 GB, free: 61.97 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.054e-05/1.061, allocations: 20 kB / 0.553 GB, free: 61.95 MB / 378.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.004722/1.066, allocations: 1.968 MB / 0.555 GB, free: 59.92 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/1.066, allocations: 8.031 kB / 0.555 GB, free: 59.91 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001363/1.066, allocations: 66.53 kB / 0.555 GB, free: 59.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002545/1.067, allocations: 201.6 kB / 0.5552 GB, free: 59.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002759/1.069, allocations: 1.219 MB / 0.5564 GB, free: 58.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.072e-05/1.07, allocations: 24.52 kB / 0.5564 GB, free: 58.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/1.07, allocations: 24 kB / 0.5565 GB, free: 58.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001453/1.071, allocations: 0.5064 MB / 0.557 GB, free: 57.78 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/1.071, allocations: 4 kB / 0.557 GB, free: 57.78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.849e-05/1.071, allocations: 12 kB / 0.557 GB, free: 57.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.945e-05/1.071, allocations: 12 kB / 0.557 GB, free: 57.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001781/1.073, allocations: 0.502 MB / 0.5575 GB, free: 57.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004361/1.077, allocations: 1.661 MB / 0.5591 GB, free: 55.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001566/1.079, allocations: 421.9 kB / 0.5595 GB, free: 55.1 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02289/1.102, allocations: 18.11 MB / 0.5772 GB, free: 34.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009924/1.103, allocations: 280 kB / 0.5774 GB, free: 34.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 3.938e-06/1.103, allocations: 0 / 0.5774 GB, free: 34.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.003444/1.107, allocations: 0.8928 MB / 0.5783 GB, free: 33.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.033e-05/1.107, allocations: 158.2 kB / 0.5785 GB, free: 33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002094/1.109, allocations: 1.231 MB / 0.5797 GB, free: 31.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.686e-05/1.109, allocations: 29.7 kB / 0.5797 GB, free: 31.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005781/1.109, allocations: 0.6349 MB / 0.5803 GB, free: 31.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/1.11, allocations: 90.75 kB / 0.5804 GB, free: 30.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.523e-05/1.11, allocations: 12 kB / 0.5804 GB, free: 30.97 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.132e-05/1.11, allocations: 338.8 kB / 0.5807 GB, free: 30.63 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007831/1.111, allocations: 173 kB / 0.5809 GB, free: 30.46 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008667/1.111, allocations: 403.7 kB / 0.5813 GB, free: 29.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000864/1.112, allocations: 232.2 kB / 0.5815 GB, free: 29.73 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-06/1.112, allocations: 4 kB / 0.5815 GB, free: 29.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002117/1.114, allocations: 0.6359 MB / 0.5821 GB, free: 29.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/1.114, allocations: 8 kB / 0.5821 GB, free: 29.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.718e-05/1.115, allocations: 39.98 kB / 0.5822 GB, free: 29.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004541/1.115, allocations: 140.8 kB / 0.5823 GB, free: 28.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007576/1.116, allocations: 120.1 kB / 0.5824 GB, free: 28.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007345/1.117, allocations: 0.6812 MB / 0.5831 GB, free: 28.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001209/1.118, allocations: 83.47 kB / 0.5832 GB, free: 27.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.121e-05/1.118, allocations: 39.98 kB / 0.5832 GB, free: 27.95 MB / 378.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 () * Number of clocked 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.0007584/1.119, allocations: 272.1 kB / 0.5835 GB, free: 27.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002512/1.119, allocations: 185.8 kB / 0.5837 GB, free: 27.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003392/1.122, allocations: 0.8128 MB / 0.5844 GB, free: 26.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/1.122, allocations: 0 / 0.5844 GB, free: 26.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/1.122, allocations: 0 / 0.5844 GB, free: 26.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/1.122, allocations: 0 / 0.5844 GB, free: 26.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003632/1.126, allocations: 1.39 MB / 0.5858 GB, free: 25.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.286e-05/1.126, allocations: 32 kB / 0.5858 GB, free: 25.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004719/1.127, allocations: 59.95 kB / 0.5859 GB, free: 25.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003726/1.127, allocations: 124.8 kB / 0.586 GB, free: 25 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.598e-05/1.127, allocations: 27.97 kB / 0.586 GB, free: 24.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007187/1.128, allocations: 0.6734 MB / 0.5867 GB, free: 24.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/1.128, allocations: 0 / 0.5867 GB, free: 24.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002196/1.13, allocations: 0.7864 MB / 0.5875 GB, free: 23.44 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007503/1.131, allocations: 286.6 kB / 0.5877 GB, free: 23.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002699/1.131, allocations: 8 kB / 0.5877 GB, free: 23.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008785/1.132, allocations: 43.95 kB / 0.5878 GB, free: 23.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001859/1.132, allocations: 39.95 kB / 0.5878 GB, free: 23.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.18e-05/1.132, allocations: 27.98 kB / 0.5879 GB, free: 23.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001795/1.134, allocations: 0.9419 MB / 0.5888 GB, free: 22.06 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.51e-07/1.134, allocations: 0 / 0.5888 GB, free: 22.06 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001607/1.136, allocations: 375.6 kB / 0.5891 GB, free: 21.7 MB / 378.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) * Number of clocked states: 0 () * 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.003605/1.139, allocations: 1.968 MB / 0.5911 GB, free: 19.69 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002141/1.142, allocations: 0.5435 MB / 0.5916 GB, free: 19.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/1.142, allocations: 0 / 0.5916 GB, free: 19.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/1.143, allocations: 319.4 kB / 0.5919 GB, free: 18.81 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001394/1.144, allocations: 238.9 kB / 0.5921 GB, free: 18.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01997/1.164, allocations: 12.43 MB / 0.6043 GB, free: 5.426 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006181/1.165, allocations: 1.187 MB / 0.6054 GB, free: 4.207 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008358/1.166, allocations: 0.5579 MB / 0.606 GB, free: 3.648 MB / 378.7 MB Notification: Performance of SimCode: time 1.042e-06/1.166, allocations: 0 / 0.606 GB, free: 3.648 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.98/4.145, allocations: 30.37 MB / 0.6356 GB, free: 5.262 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat