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.002449/0.002448, allocations: 185.7 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 1.999/1.999, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001132/0.001132, allocations: 86.2 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004015/0.0004013, allocations: 11.98 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3322/0.3327, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1442/0.4769, allocations: 90.38 MB / 465 MB, free: 6.246 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002845/0.4773, allocations: 83.95 kB / 465.1 MB, free: 6.164 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4145/0.8918, allocations: 43.72 MB / 0.4969 GB, free: 95.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.8918, allocations: 1.031 kB / 0.4969 GB, free: 95.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.819e-05/0.8919, allocations: 13.31 kB / 0.4969 GB, free: 95.33 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.003569/0.8955, allocations: 1.303 MB / 0.4982 GB, free: 94.56 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.651e-05/0.8955, allocations: 9.688 kB / 0.4982 GB, free: 94.56 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001581/0.8957, allocations: 63.19 kB / 0.4982 GB, free: 94.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002437/0.896, allocations: 116.1 kB / 0.4984 GB, free: 94.47 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001716/0.8977, allocations: 0.7233 MB / 0.4991 GB, free: 94.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.675e-05/0.8978, allocations: 25.33 kB / 0.4991 GB, free: 94.15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.314e-05/0.8979, allocations: 24.25 kB / 0.4991 GB, free: 94.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/0.8989, allocations: 321.8 kB / 0.4994 GB, free: 94.12 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.899, allocations: 3.031 kB / 0.4994 GB, free: 94.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.758e-05/0.8991, allocations: 11.25 kB / 0.4994 GB, free: 94.12 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.301e-05/0.8991, allocations: 19.33 kB / 0.4994 GB, free: 94.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001134/0.9002, allocations: 296.6 kB / 0.4997 GB, free: 94.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003149/0.9034, allocations: 1.402 MB / 0.5011 GB, free: 93.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001191/0.9047, allocations: 312.1 kB / 0.5014 GB, free: 93.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006844/0.9116, allocations: 4.209 MB / 0.5055 GB, free: 90.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006469/0.9123, allocations: 210.8 kB / 0.5057 GB, free: 89.97 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 3.456e-06/0.9123, allocations: 0 / 0.5057 GB, free: 89.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.002684/0.915, allocations: 0.8389 MB / 0.5065 GB, free: 89.58 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.983e-05/0.9151, allocations: 56.88 kB / 0.5066 GB, free: 89.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001291/0.9164, allocations: 0.72 MB / 0.5073 GB, free: 89.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.901e-05/0.9165, allocations: 32.42 kB / 0.5073 GB, free: 89.35 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003281/0.9168, allocations: 426.4 kB / 0.5077 GB, free: 89.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.9169, allocations: 100.7 kB / 0.5078 GB, free: 89.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.268e-05/0.917, allocations: 5.625 kB / 0.5078 GB, free: 89.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.402e-05/0.9171, allocations: 331.3 kB / 0.5081 GB, free: 88.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005025/0.9176, allocations: 126.8 kB / 0.5083 GB, free: 88.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005158/0.9181, allocations: 231.7 kB / 0.5085 GB, free: 88.64 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005392/0.9187, allocations: 151.3 kB / 0.5086 GB, free: 88.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/0.9187, allocations: 1.125 kB / 0.5086 GB, free: 88.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001398/0.9201, allocations: 460.9 kB / 0.5091 GB, free: 88.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.578e-05/0.9201, allocations: 15.61 kB / 0.5091 GB, free: 88.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.327e-05/0.9202, allocations: 34.56 kB / 0.5091 GB, free: 88.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002953/0.9205, allocations: 58.92 kB / 0.5092 GB, free: 88.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000599/0.9211, allocations: 74.58 kB / 0.5092 GB, free: 88.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002067/0.9232, allocations: 2.665 MB / 0.5118 GB, free: 86.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007716/0.924, allocations: 49.2 kB / 0.5119 GB, free: 86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.799e-05/0.9241, allocations: 19 kB / 0.5119 GB, free: 86 MB / 378.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 () * Number of clocked 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.0004504/0.9246, allocations: 196 kB / 0.5121 GB, free: 85.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001521/0.9247, allocations: 114.1 kB / 0.5122 GB, free: 85.83 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001825/0.9266, allocations: 0.5113 MB / 0.5127 GB, free: 85.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.108e-06/0.9266, allocations: 3.938 kB / 0.5127 GB, free: 85.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.9266, allocations: 0 / 0.5127 GB, free: 85.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.874e-06/0.9267, allocations: 11.73 kB / 0.5127 GB, free: 85.72 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009668/0.9276, allocations: 0.5647 MB / 0.5133 GB, free: 85.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.604e-05/0.9277, allocations: 32.14 kB / 0.5133 GB, free: 85.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004656/0.9282, allocations: 52.33 kB / 0.5134 GB, free: 85.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002408/0.9285, allocations: 48.03 kB / 0.5134 GB, free: 85.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.304e-05/0.9285, allocations: 12.92 kB / 0.5134 GB, free: 85.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001946/0.9305, allocations: 2.668 MB / 0.516 GB, free: 82.97 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.9305, allocations: 0 / 0.516 GB, free: 82.97 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002004/0.9325, allocations: 0.6317 MB / 0.5166 GB, free: 82.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003699/0.9329, allocations: 192.7 kB / 0.5168 GB, free: 82.67 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001387/0.9331, allocations: 7.125 kB / 0.5168 GB, free: 82.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004353/0.9335, allocations: 20.38 kB / 0.5168 GB, free: 82.67 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.9337, allocations: 32.08 kB / 0.5169 GB, free: 82.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.868e-05/0.9337, allocations: 7.781 kB / 0.5169 GB, free: 82.67 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009728/0.9347, allocations: 0.5703 MB / 0.5174 GB, free: 82.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.9347, allocations: 0 / 0.5174 GB, free: 82.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001168/0.9359, allocations: 278.7 kB / 0.5177 GB, free: 82.5 MB / 378.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) * Number of clocked states: 0 () * 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.003097/0.939, allocations: 1.513 MB / 0.5192 GB, free: 81.76 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001551/0.9406, allocations: 0.6002 MB / 0.5198 GB, free: 81.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/0.9407, allocations: 0 / 0.5198 GB, free: 81.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008621/0.9415, allocations: 451.4 kB / 0.5202 GB, free: 81.24 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006982/0.9423, allocations: 102.7 kB / 0.5203 GB, free: 81.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01175/0.954, allocations: 7.043 MB / 0.5272 GB, free: 76.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004442/0.9545, allocations: 0.979 MB / 0.5281 GB, free: 75.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005177/0.9551, allocations: 337.9 kB / 0.5285 GB, free: 75.41 MB / 378.7 MB Notification: Performance of SimCode: time 1.022e-06/0.9551, allocations: 0 / 0.5285 GB, free: 75.41 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.069/4.024, allocations: 21.31 MB / 0.5493 GB, free: 60.43 MB / 378.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)