Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=1998,variableFilter="time|Q1.vbc|Q1.vbe",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter") translateModel(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,tolerance=1e-08,outputFormat="mat",numberOfIntervals=1998,variableFilter="time|Q1.vbc|Q1.vbe",fileNamePrefix="Modelica_4.0.0_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.001573/0.001573, allocations: 108.6 kB / 17.69 MB, free: 5.445 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.001853/0.001853, allocations: 191 kB / 18.63 MB, free: 4.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009609/0.0009609, allocations: 51.17 kB / 302.1 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1031, allocations: 49.45 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.005873/0.109, allocations: 5.062 MB / 356.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01166/0.1207, allocations: 10.77 MB / 367.3 MB, free: 3.789 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008745/0.1216, allocations: 31.75 kB / 367.4 MB, free: 3.758 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001685/0.1234, allocations: 0.6943 MB / 368.1 MB, free: 3.059 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003239/0.1266, allocations: 1.006 MB / 369.1 MB, free: 2.043 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001754/0.1284, allocations: 0.6076 MB / 369.7 MB, free: 1.438 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002187/0.1306, allocations: 1.365 MB / 371 MB, free: 68 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2012/0.3319, allocations: 177.2 kB / 371.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006629/0.3326, allocations: 282.4 kB / 371.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008056/0.3334, allocations: 321.6 kB / 371.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001795/0.3336, allocations: 32.06 kB / 371.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002805/0.3364, allocations: 0.7489 MB / 372.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001927/0.3366, allocations: 104.8 kB / 372.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006279/0.3372, allocations: 406.7 kB / 373.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002522/0.3398, allocations: 1.267 MB / 374.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3398, allocations: 0 / 374.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.3398, allocations: 1.344 kB / 374.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.378e-05/0.3398, allocations: 0 / 374.4 MB, free: 11.33 MB / 302.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.002245/0.3421, allocations: 1.317 MB / 375.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.393e-05/0.3422, allocations: 9.75 kB / 375.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/0.3423, allocations: 116.6 kB / 375.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001229/0.3435, allocations: 0.7421 MB / 376.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.487e-05/0.3436, allocations: 20.98 kB / 376.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.951e-05/0.3437, allocations: 31.44 kB / 376.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007346/0.3444, allocations: 321.5 kB / 376.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.3444, allocations: 1.375 kB / 376.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.706e-05/0.3445, allocations: 8.938 kB / 376.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.729e-05/0.3445, allocations: 10.53 kB / 376.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006967/0.3452, allocations: 275.2 kB / 377.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002086/0.3473, allocations: 1.368 MB / 378.6 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006478/0.348, allocations: 294.5 kB / 378.8 MB, free: 9.461 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003973/0.3484, allocations: 241.3 kB / 379.1 MB, free: 9.449 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004157/0.3525, allocations: 3.595 MB / 382.7 MB, free: 6.488 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004443/0.353, allocations: 197.1 kB / 382.9 MB, free: 6.438 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.873e-06/0.353, allocations: 0 / 382.9 MB, free: 6.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001553/0.3546, allocations: 0.7285 MB / 383.6 MB, free: 6.133 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.704e-05/0.3546, allocations: 54.12 kB / 383.7 MB, free: 6.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/0.3557, allocations: 0.8102 MB / 384.5 MB, free: 5.805 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.3557, allocations: 31.83 kB / 384.5 MB, free: 5.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002965/0.356, allocations: 454.7 kB / 384.9 MB, free: 5.406 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.757e-05/0.3561, allocations: 96.19 kB / 385 MB, free: 5.332 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/0.3562, allocations: 73.98 kB / 385.1 MB, free: 5.289 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.074e-05/0.3563, allocations: 335.5 kB / 385.4 MB, free: 4.969 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002802/0.3565, allocations: 113 kB / 385.5 MB, free: 4.934 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000317/0.3569, allocations: 229.4 kB / 385.8 MB, free: 4.766 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005738/0.3574, allocations: 364.9 kB / 386.1 MB, free: 4.535 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3575, allocations: 1.125 kB / 386.1 MB, free: 4.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009197/0.3584, allocations: 0.5116 MB / 386.6 MB, free: 4.324 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.3584, allocations: 7.469 kB / 386.6 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.252e-05/0.3585, allocations: 39.31 kB / 386.7 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002068/0.3587, allocations: 57.31 kB / 386.7 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002872/0.359, allocations: 78.44 kB / 386.8 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001383/0.3604, allocations: 2.848 MB / 389.7 MB, free: 1.438 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004069/0.3608, allocations: 38.83 kB / 389.7 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.199e-05/0.3608, allocations: 19.53 kB / 389.7 MB, free: 1.414 MB / 302.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.0002613/0.3611, allocations: 204.3 kB / 389.9 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.3612, allocations: 111.2 kB / 390 MB, free: 1.191 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001022/0.3623, allocations: 0.4885 MB / 390.5 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.3623, allocations: 2.375 kB / 390.5 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3623, allocations: 2.172 kB / 390.5 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.3623, allocations: 0.9844 kB / 390.5 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005724/0.3629, allocations: 0.5453 MB / 391.1 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.197e-05/0.3629, allocations: 32.95 kB / 391.1 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002297/0.3632, allocations: 39.03 kB / 391.1 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000133/0.3633, allocations: 53.33 kB / 391.2 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.654e-05/0.3633, allocations: 14.33 kB / 391.2 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00179/0.3651, allocations: 2.85 MB / 394.1 MB, free: 13.76 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3652, allocations: 1.797 kB / 394.1 MB, free: 13.76 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/0.3663, allocations: 0.6099 MB / 394.7 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002751/0.3666, allocations: 182.5 kB / 394.8 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.777e-05/0.3667, allocations: 6.969 kB / 394.9 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002252/0.3669, allocations: 17.81 kB / 394.9 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.942e-05/0.367, allocations: 24.77 kB / 394.9 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.143e-05/0.3671, allocations: 17.66 kB / 394.9 MB, free: 13.29 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006622/0.3677, allocations: 0.5485 MB / 395.5 MB, free: 13.05 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3677, allocations: 0 / 395.5 MB, free: 13.05 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007743/0.3685, allocations: 243 kB / 395.7 MB, free: 13 MB / 318.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.0005746/0.3691, allocations: 351.3 kB / 396 MB, free: 12.87 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.3702, allocations: 0.5862 MB / 396.6 MB, free: 12.52 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3702, allocations: 0.875 kB / 396.6 MB, free: 12.52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000591/0.3708, allocations: 444 kB / 397.1 MB, free: 12.2 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005448/0.3713, allocations: 111.5 kB / 397.2 MB, free: 12.14 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002294/0.3737, allocations: 1.513 MB / 398.7 MB, free: 11.36 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004855/0.3742, allocations: 0.9593 MB / 399.6 MB, free: 10.64 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002292/0.3744, allocations: 83.81 kB / 399.7 MB, free: 10.62 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.169e-05/0.3745, allocations: 43.19 kB / 399.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of SimCode: time 6.32e-07/0.3745, allocations: 0 / 399.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of Templates: time 0.0146/0.3891, allocations: 8.336 MB / 408.1 MB, free: 5.652 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)