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.001387/0.001387, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.945/1.945, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 93 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.832e-05/2.828e-05, allocations: 8 kB / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3379, allocations: 47.56 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1492/0.4872, allocations: 89.64 MB / 452.1 MB, free: 12.57 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.4875, allocations: 76.95 kB / 452.1 MB, free: 12.49 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1375/0.625, allocations: 41.03 MB / 493.2 MB, free: 3.477 MB / 379.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.625, allocations: 0 / 493.2 MB, free: 3.477 MB / 379.1 MB Notification: Performance of Transformations before backend: time 4.628e-05/0.6251, allocations: 16 kB / 493.2 MB, free: 3.461 MB / 379.1 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.003009/0.6281, allocations: 1.116 MB / 494.3 MB, free: 2.301 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.395e-05/0.6282, allocations: 8.031 kB / 494.3 MB, free: 2.293 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002627/0.6285, allocations: 110.7 kB / 494.4 MB, free: 2.184 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001726/0.6302, allocations: 0.7165 MB / 495.1 MB, free: 1.414 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.784e-05/0.6303, allocations: 8 kB / 495.1 MB, free: 1.406 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.903e-05/0.6304, allocations: 23.98 kB / 495.2 MB, free: 1.383 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006382/0.631, allocations: 205.3 kB / 495.4 MB, free: 1.184 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006479/0.6317, allocations: 249.1 kB / 495.6 MB, free: 0.9336 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.6317, allocations: 0 / 495.6 MB, free: 0.9336 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.543e-05/0.6318, allocations: 7.984 kB / 495.6 MB, free: 0.9258 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.402e-05/0.6318, allocations: 8 kB / 495.6 MB, free: 0.918 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004585/0.6364, allocations: 1.345 MB / 497 MB, free: 15.5 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000626/0.6371, allocations: 234.8 kB / 497.2 MB, free: 15.26 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000435/0.6375, allocations: 205.9 kB / 497.4 MB, free: 15.05 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007894/0.6454, allocations: 4.25 MB / 0.4899 GB, free: 10.16 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000418/0.6459, allocations: 154.4 kB / 0.49 GB, free: 9.996 MB / 395.1 MB Notification: Performance of pre-optimization done (n=29): time 2.775e-06/0.6459, allocations: 0 / 0.49 GB, free: 9.996 MB / 395.1 MB Notification: Performance of matching and sorting (n=29): time 0.001427/0.6474, allocations: 433.8 kB / 0.4905 GB, free: 9.562 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.269e-05/0.6474, allocations: 59.59 kB / 0.4905 GB, free: 9.492 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001246/0.6487, allocations: 0.6531 MB / 0.4911 GB, free: 8.824 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 3.768e-05/0.6487, allocations: 25.7 kB / 0.4912 GB, free: 8.793 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004458/0.6492, allocations: 428.4 kB / 0.4916 GB, free: 8.375 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.6493, allocations: 94.66 kB / 0.4917 GB, free: 8.281 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.34e-05/0.6494, allocations: 0 / 0.4917 GB, free: 8.281 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.6495, allocations: 326.8 kB / 0.492 GB, free: 7.953 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000229/0.6497, allocations: 84.77 kB / 0.4921 GB, free: 7.871 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003479/0.6501, allocations: 195.7 kB / 0.4923 GB, free: 7.633 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006099/0.6507, allocations: 167.8 kB / 0.4924 GB, free: 7.469 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/0.6508, allocations: 0 / 0.4924 GB, free: 7.469 MB / 395.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001222/0.652, allocations: 410.7 kB / 0.4928 GB, free: 7.055 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.652, allocations: 11.95 kB / 0.4928 GB, free: 7.043 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.215e-05/0.6521, allocations: 36.42 kB / 0.4928 GB, free: 7.008 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002979/0.6524, allocations: 49.7 kB / 0.4929 GB, free: 6.953 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005691/0.653, allocations: 83.81 kB / 0.493 GB, free: 6.871 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002619/0.6557, allocations: 2.553 MB / 0.4955 GB, free: 4.086 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006704/0.6564, allocations: 39.67 kB / 0.4955 GB, free: 4.047 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.507e-05/0.6565, allocations: 20 kB / 0.4955 GB, free: 4.027 MB / 395.1 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.0001681/0.6566, allocations: 113.5 kB / 0.4956 GB, free: 3.91 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001231/0.6579, allocations: 426.9 kB / 0.496 GB, free: 3.48 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001606/0.6581, allocations: 110.6 kB / 0.4961 GB, free: 3.371 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001781/0.6598, allocations: 0.4962 MB / 0.4966 GB, free: 2.863 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/0.6599, allocations: 0 / 0.4966 GB, free: 2.863 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.6599, allocations: 4 kB / 0.4966 GB, free: 2.859 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.6599, allocations: 4.047 kB / 0.4966 GB, free: 2.855 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009603/0.6609, allocations: 0.5227 MB / 0.4972 GB, free: 2.297 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.65e-05/0.661, allocations: 28 kB / 0.4972 GB, free: 2.27 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004615/0.6614, allocations: 51.89 kB / 0.4972 GB, free: 2.219 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002289/0.6617, allocations: 45.69 kB / 0.4973 GB, free: 2.168 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.797e-05/0.6617, allocations: 8 kB / 0.4973 GB, free: 2.16 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2666/0.9283, allocations: 2.538 MB / 0.4998 GB, free: 104.3 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/0.9284, allocations: 0.625 kB / 0.4998 GB, free: 104.3 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001745/0.9301, allocations: 0.569 MB / 0.5003 GB, free: 104.2 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003566/0.9305, allocations: 188.1 kB / 0.5005 GB, free: 104 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001266/0.9306, allocations: 7.422 kB / 0.5005 GB, free: 104 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004562/0.9311, allocations: 15.19 kB / 0.5005 GB, free: 104 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/0.9313, allocations: 34.62 kB / 0.5005 GB, free: 104 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.162e-05/0.9313, allocations: 10.44 kB / 0.5006 GB, free: 104 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0009424/0.9323, allocations: 0.4996 MB / 0.501 GB, free: 103.9 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.9323, allocations: 0 / 0.501 GB, free: 103.9 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001126/0.9334, allocations: 259.3 kB / 0.5013 GB, free: 103.9 MB / 395.1 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.00284/0.9363, allocations: 1.521 MB / 0.5028 GB, free: 103.3 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.00106/0.9374, allocations: 0.5086 MB / 0.5033 GB, free: 103 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.9374, allocations: 1.219 kB / 0.5033 GB, free: 103 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006052/0.938, allocations: 393.5 kB / 0.5037 GB, free: 102.8 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007199/0.9388, allocations: 90.5 kB / 0.5037 GB, free: 102.8 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004073/0.9428, allocations: 1.329 MB / 0.505 GB, free: 102.4 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006119/0.9435, allocations: 0.9742 MB / 0.506 GB, free: 101.7 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005918/0.9441, allocations: 336.9 kB / 0.5063 GB, free: 101.7 MB / 395.1 MB Notification: Performance of SimCode: time 1.252e-06/0.9441, allocations: 1.969 kB / 0.5063 GB, free: 101.7 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.142/4.086, allocations: 20.95 MB / 0.5268 GB, free: 99.75 MB / 395.1 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)