Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.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.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",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.002121/0.002121, allocations: 181.8 kB / 13.66 MB, free: 1.664 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.036/2.036, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001126/0.001125, allocations: 86.64 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.134e-05/3.143e-05, allocations: 4 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1025, allocations: 47.57 MB / 369.2 MB, free: 2.121 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4235/0.5261, allocations: 90.28 MB / 459.5 MB, free: 3.121 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/0.5264, allocations: 77.08 kB / 459.5 MB, free: 3.082 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1473/0.6737, allocations: 43.6 MB / 0.4913 GB, free: 9.078 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.6738, allocations: 0 / 0.4913 GB, free: 9.078 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.651e-05/0.6739, allocations: 12 kB / 0.4914 GB, free: 9.066 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.003199/0.6771, allocations: 1.108 MB / 0.4924 GB, free: 7.914 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.169e-05/0.6772, allocations: 16.03 kB / 0.4925 GB, free: 7.898 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001461/0.6773, allocations: 70.47 kB / 0.4925 GB, free: 7.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002785/0.6776, allocations: 114.7 kB / 0.4926 GB, free: 7.707 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001931/0.6796, allocations: 0.7204 MB / 0.4933 GB, free: 6.934 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.827e-05/0.6797, allocations: 20.56 kB / 0.4934 GB, free: 6.914 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.6798, allocations: 28 kB / 0.4934 GB, free: 6.887 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008469/0.6806, allocations: 286.2 kB / 0.4937 GB, free: 6.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.6807, allocations: 0 / 0.4937 GB, free: 6.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.329e-05/0.6807, allocations: 12 kB / 0.4937 GB, free: 6.578 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.855e-05/0.6808, allocations: 8 kB / 0.4937 GB, free: 6.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006521/0.6814, allocations: 226.4 kB / 0.4939 GB, free: 6.352 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003453/0.6849, allocations: 1.408 MB / 0.4953 GB, free: 4.855 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006804/0.6856, allocations: 235 kB / 0.4955 GB, free: 4.617 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004915/0.6861, allocations: 223.2 kB / 0.4957 GB, free: 4.398 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007962/0.6941, allocations: 4.239 MB / 0.4998 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004333/0.6946, allocations: 172.4 kB / 0.5 GB, free: 15.32 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 3.015e-06/0.6946, allocations: 0 / 0.5 GB, free: 15.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.001164/0.6958, allocations: 383.4 kB / 0.5004 GB, free: 14.93 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.548e-05/0.6959, allocations: 63.53 kB / 0.5004 GB, free: 14.86 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001484/0.6974, allocations: 0.7093 MB / 0.5011 GB, free: 14.13 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.534e-05/0.6975, allocations: 37.7 kB / 0.5012 GB, free: 14.09 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004909/0.698, allocations: 422.4 kB / 0.5016 GB, free: 13.67 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001503/0.6982, allocations: 94.66 kB / 0.5017 GB, free: 13.58 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.788e-05/0.6982, allocations: 7.938 kB / 0.5017 GB, free: 13.57 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.6984, allocations: 330.8 kB / 0.502 GB, free: 13.24 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002818/0.6986, allocations: 88.77 kB / 0.5021 GB, free: 13.15 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000374/0.699, allocations: 196.1 kB / 0.5023 GB, free: 12.91 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003276/0.6994, allocations: 111.9 kB / 0.5024 GB, free: 12.8 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.917e-06/0.6994, allocations: 4 kB / 0.5024 GB, free: 12.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001143/0.7006, allocations: 394.5 kB / 0.5027 GB, free: 12.4 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.826e-05/0.7006, allocations: 7.938 kB / 0.5027 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.73e-05/0.7007, allocations: 36.38 kB / 0.5028 GB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003239/0.701, allocations: 61.67 kB / 0.5028 GB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005806/0.7016, allocations: 79.88 kB / 0.5029 GB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002824/0.7045, allocations: 2.643 MB / 0.5055 GB, free: 9.305 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007308/0.7053, allocations: 51.56 kB / 0.5055 GB, free: 9.254 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.428e-05/0.7053, allocations: 20 kB / 0.5056 GB, free: 9.234 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.VIN.counter,VIN.counter,$whenCondition1,$PRE.VIN.T0,VIN.T0,$PRE.VIN.counter2,VIN.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001825/0.7055, allocations: 128.9 kB / 0.5057 GB, free: 9.102 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001765/0.7057, allocations: 110.7 kB / 0.5058 GB, free: 8.992 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001621/0.7073, allocations: 445.9 kB / 0.5062 GB, free: 8.539 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.244e-05/0.7074, allocations: 7.953 kB / 0.5062 GB, free: 8.531 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.7074, allocations: 0 / 0.5062 GB, free: 8.531 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.7074, allocations: 0 / 0.5062 GB, free: 8.531 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001181/0.7086, allocations: 0.5701 MB / 0.5068 GB, free: 7.914 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.933e-05/0.7087, allocations: 31.98 kB / 0.5068 GB, free: 7.883 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004838/0.7092, allocations: 51.89 kB / 0.5069 GB, free: 7.832 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002628/0.7095, allocations: 53.67 kB / 0.5069 GB, free: 7.773 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.873e-05/0.7096, allocations: 11.95 kB / 0.5069 GB, free: 7.762 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002766/0.7123, allocations: 2.65 MB / 0.5095 GB, free: 4.844 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.7124, allocations: 0 / 0.5095 GB, free: 4.844 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001464/0.7139, allocations: 0.5178 MB / 0.51 GB, free: 4.301 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003926/0.7143, allocations: 183.8 kB / 0.5102 GB, free: 4.102 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001388/0.7144, allocations: 8.125 kB / 0.5102 GB, free: 4.094 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004589/0.7149, allocations: 23.98 kB / 0.5102 GB, free: 4.07 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001508/0.7151, allocations: 27.95 kB / 0.5103 GB, free: 4.043 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.138e-05/0.7151, allocations: 8 kB / 0.5103 GB, free: 4.035 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00118/0.7163, allocations: 0.5632 MB / 0.5108 GB, free: 3.461 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.7163, allocations: 0 / 0.5108 GB, free: 3.461 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001196/0.7175, allocations: 283.5 kB / 0.5111 GB, free: 3.184 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Q1.vbe,Q1.vbc) * Number of discrete variables: 4 ($whenCondition1,VIN.T0,VIN.counter,VIN.counter2) * Number of discrete states: 2 (VIN.counter,VIN.counter2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002839/0.7204, allocations: 1.414 MB / 0.5125 GB, free: 1.734 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00127/0.7217, allocations: 0.5308 MB / 0.513 GB, free: 1.172 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.7217, allocations: 3.938 kB / 0.513 GB, free: 1.168 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007375/0.7225, allocations: 414.9 kB / 0.5134 GB, free: 0.7305 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006962/0.7232, allocations: 92.33 kB / 0.5135 GB, free: 0.6406 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004331/0.7276, allocations: 1.361 MB / 0.5148 GB, free: 15.24 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007551/0.7284, allocations: 0.9758 MB / 0.5157 GB, free: 14.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006547/0.729, allocations: 339.3 kB / 0.5161 GB, free: 13.9 MB / 410.7 MB Notification: Performance of SimCode: time 1.563e-06/0.7291, allocations: 0 / 0.5161 GB, free: 13.9 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.446/4.175, allocations: 21.01 MB / 0.5366 GB, free: 112.6 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-08 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)