Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,tolerance=1e-08,outputFormat="empty",numberOfIntervals=1998,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter") translateModel(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,tolerance=1e-08,outputFormat="empty",numberOfIntervals=1998,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005124/0.005124, allocations: 98.64 kB / 15.73 MB, free: 5.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 192.4 kB / 16.67 MB, free: 5.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.422/1.422, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 52.2 kB / 326.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1089, allocations: 46.62 MB / 373.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.2307/0.3397, allocations: 5.01 MB / 378.2 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01017/0.3499, allocations: 10.44 MB / 388.6 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008186/0.3508, allocations: 30 kB / 388.6 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002067/0.3529, allocations: 0.6831 MB / 389.3 MB, free: 3.766 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00387/0.3568, allocations: 0.991 MB / 390.3 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00193/0.3587, allocations: 0.5938 MB / 390.9 MB, free: 2.898 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00222/0.361, allocations: 1.34 MB / 392.2 MB, free: 2.383 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003017/0.3613, allocations: 180 kB / 392.4 MB, free: 2.297 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003777/0.3617, allocations: 271.3 kB / 392.7 MB, free: 2.176 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003552/0.362, allocations: 315 kB / 393 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.759e-05/0.3621, allocations: 31.75 kB / 393 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001914/0.364, allocations: 0.6756 MB / 393.7 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.3641, allocations: 106.5 kB / 393.8 MB, free: 1.781 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003223/0.3645, allocations: 415.9 kB / 394.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002037/0.3665, allocations: 1.267 MB / 395.5 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3665, allocations: 3.938 kB / 395.5 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3665, allocations: 1.344 kB / 395.5 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.3666, allocations: 0 / 395.5 MB, free: 0.9727 MB / 318.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.002069/0.3686, allocations: 1.352 MB / 396.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.3687, allocations: 10.86 kB / 396.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000167/0.3689, allocations: 121 kB / 397 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00119/0.3701, allocations: 0.7601 MB / 397.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.715e-05/0.3701, allocations: 24.08 kB / 397.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.407e-05/0.3702, allocations: 26.42 kB / 397.8 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007706/0.3709, allocations: 319.4 kB / 398.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.371, allocations: 1.594 kB / 398.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.778e-05/0.371, allocations: 11.66 kB / 398.1 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/0.371, allocations: 7.453 kB / 398.1 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006919/0.3717, allocations: 278.5 kB / 398.4 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002314/0.3741, allocations: 1.372 MB / 399.7 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007098/0.3748, allocations: 296.8 kB / 400 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004279/0.3752, allocations: 251.5 kB / 400.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004394/0.3796, allocations: 3.597 MB / 403.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004345/0.3801, allocations: 188.9 kB / 404.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.004e-06/0.3801, allocations: 0 / 404.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001702/0.3818, allocations: 0.7339 MB / 404.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.157e-05/0.3819, allocations: 60.47 kB / 404.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001534/0.3834, allocations: 0.8219 MB / 405.7 MB, free: 9.805 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.786e-05/0.3835, allocations: 26.92 kB / 405.7 MB, free: 9.773 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004883/0.384, allocations: 446.6 kB / 406.1 MB, free: 9.383 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.3841, allocations: 111.1 kB / 406.2 MB, free: 9.285 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/0.3842, allocations: 73.3 kB / 406.3 MB, free: 9.238 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.3844, allocations: 321.6 kB / 406.6 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003156/0.3847, allocations: 116.5 kB / 406.7 MB, free: 8.867 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004082/0.3851, allocations: 225.4 kB / 407 MB, free: 8.672 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006976/0.3858, allocations: 356.4 kB / 407.3 MB, free: 8.41 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3858, allocations: 1.062 kB / 407.3 MB, free: 8.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001217/0.3871, allocations: 0.5323 MB / 407.8 MB, free: 8.113 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.3871, allocations: 6.719 kB / 407.9 MB, free: 8.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.538e-05/0.3872, allocations: 39.58 kB / 407.9 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002636/0.3874, allocations: 52.44 kB / 407.9 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003327/0.3878, allocations: 76.88 kB / 408 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002579/0.3904, allocations: 2.841 MB / 410.9 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004925/0.3909, allocations: 51.23 kB / 410.9 MB, free: 5.086 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.092e-05/0.3909, allocations: 15.81 kB / 410.9 MB, free: 5.086 MB / 334.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 (VIN.counter,$PRE.VIN.counter,VIN.counter2,$PRE.VIN.counter2,VIN.T0,$PRE.VIN.T0,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003738/0.3913, allocations: 207.2 kB / 411.1 MB, free: 4.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001401/0.3915, allocations: 116.4 kB / 411.2 MB, free: 4.848 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001259/0.3927, allocations: 494.4 kB / 411.7 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.3928, allocations: 7.031 kB / 411.7 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.3928, allocations: 1.531 kB / 411.7 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.3928, allocations: 3.984 kB / 411.7 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009/0.3937, allocations: 0.5539 MB / 412.3 MB, free: 4.102 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.548e-05/0.3937, allocations: 37.14 kB / 412.3 MB, free: 4.094 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002589/0.394, allocations: 39.72 kB / 412.4 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001749/0.3942, allocations: 46.62 kB / 412.4 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.741e-05/0.3942, allocations: 14.23 kB / 412.4 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002493/0.3967, allocations: 2.847 MB / 415.3 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3968, allocations: 0 / 415.3 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001311/0.3981, allocations: 0.6122 MB / 415.9 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003047/0.3984, allocations: 189.3 kB / 416.1 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.108e-05/0.3985, allocations: 6.438 kB / 416.1 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002309/0.3987, allocations: 15.2 kB / 416.1 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.644e-05/0.3988, allocations: 28.62 kB / 416.1 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.207e-05/0.3989, allocations: 12.95 kB / 416.1 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008907/0.3998, allocations: 0.5509 MB / 416.7 MB, free: 216 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3998, allocations: 0 / 416.7 MB, free: 216 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009243/0.4007, allocations: 242.1 kB / 416.9 MB, free: 160 kB / 334.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) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007764/0.4015, allocations: 365 kB / 417.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.4026, allocations: 0.5915 MB / 417.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4026, allocations: 0 / 417.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005985/0.4032, allocations: 436.6 kB / 418.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005112/0.4037, allocations: 105.5 kB / 418.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002604/0.4064, allocations: 1.54 MB / 419.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005178/0.4069, allocations: 0.9556 MB / 420.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002402/0.4071, allocations: 82.27 kB / 421 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.365e-05/0.4072, allocations: 41.66 kB / 421 MB, free: 13.33 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4072, allocations: 7.938 kB / 421 MB, free: 13.32 MB / 350.1 MB Notification: Performance of Templates: time 0.01584/0.4231, allocations: 8.385 MB / 429.4 MB, free: 5.465 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)