Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001103/0.001103, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001179/0.001179, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001179, allocations: 60.47 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1079, allocations: 50.53 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.006729/0.1147, allocations: 5.082 MB / 364 MB, free: 8.238 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.194/0.3087, allocations: 10.8 MB / 374.8 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008714/0.3096, allocations: 27.53 kB / 374.8 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002466/0.3122, allocations: 0.6912 MB / 375.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003297/0.3155, allocations: 1.006 MB / 376.5 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002101/0.3176, allocations: 0.614 MB / 377.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002458/0.3201, allocations: 1.383 MB / 378.5 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002859/0.3204, allocations: 177.3 kB / 378.7 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004792/0.3209, allocations: 281.4 kB / 379 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003956/0.3213, allocations: 322.7 kB / 379.3 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.682e-05/0.3214, allocations: 38.69 kB / 379.3 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002078/0.3234, allocations: 0.7481 MB / 380.1 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.3236, allocations: 111 kB / 380.2 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003652/0.3239, allocations: 397.2 kB / 380.5 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001862/0.3258, allocations: 1.276 MB / 381.8 MB, free: 8.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3258, allocations: 0.5156 kB / 381.8 MB, free: 8.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3259, allocations: 0 / 381.8 MB, free: 8.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.996e-05/0.3259, allocations: 0 / 381.8 MB, free: 8.5 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.002515/0.3284, allocations: 1.315 MB / 383.1 MB, free: 7.652 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.3285, allocations: 11.27 kB / 383.2 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001385/0.3286, allocations: 116.3 kB / 383.3 MB, free: 7.594 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001124/0.3297, allocations: 0.7384 MB / 384 MB, free: 7.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.82e-05/0.3298, allocations: 24.28 kB / 384 MB, free: 7.168 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.811e-05/0.3298, allocations: 29 kB / 384.1 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007823/0.3306, allocations: 320 kB / 384.4 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.3307, allocations: 4 kB / 384.4 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.697e-05/0.3307, allocations: 10.86 kB / 384.4 MB, free: 7.012 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.175e-05/0.3307, allocations: 12.42 kB / 384.4 MB, free: 7.012 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008234/0.3316, allocations: 273.2 kB / 384.7 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001987/0.3336, allocations: 1.376 MB / 386 MB, free: 6.043 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007288/0.3343, allocations: 291.8 kB / 386.3 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004509/0.3348, allocations: 244.7 kB / 386.6 MB, free: 5.809 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003474/0.3382, allocations: 2.798 MB / 389.4 MB, free: 3.438 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004299/0.3387, allocations: 209.8 kB / 389.6 MB, free: 3.336 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 3.276e-06/0.3387, allocations: 0 / 389.6 MB, free: 3.336 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001499/0.3402, allocations: 0.6373 MB / 390.2 MB, free: 3.012 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.619e-05/0.3403, allocations: 55.09 kB / 390.3 MB, free: 2.949 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009548/0.3412, allocations: 0.8094 MB / 391.1 MB, free: 2.613 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.3413, allocations: 30.95 kB / 391.1 MB, free: 2.578 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002721/0.3415, allocations: 441.1 kB / 391.5 MB, free: 2.227 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.369e-05/0.3416, allocations: 106.9 kB / 391.6 MB, free: 2.145 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.3417, allocations: 77.11 kB / 391.7 MB, free: 2.102 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.435e-05/0.3418, allocations: 318.4 kB / 392 MB, free: 1.793 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002754/0.3421, allocations: 121.2 kB / 392.1 MB, free: 1.754 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003179/0.3424, allocations: 223 kB / 392.4 MB, free: 1.586 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00166/0.3441, allocations: 0.7171 MB / 393.1 MB, free: 1.254 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.3441, allocations: 1.406 kB / 393.1 MB, free: 1.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001018/0.3451, allocations: 0.5141 MB / 393.6 MB, free: 1.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.98e-05/0.3452, allocations: 5.781 kB / 393.6 MB, free: 1.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.01e-05/0.3452, allocations: 37.72 kB / 393.6 MB, free: 1.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001356/0.3454, allocations: 32.11 kB / 393.7 MB, free: 1.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003511/0.3457, allocations: 89.88 kB / 393.7 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001203/0.3469, allocations: 1.445 MB / 395.2 MB, free: 15.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003736/0.3473, allocations: 46.95 kB / 395.2 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.215e-05/0.3474, allocations: 16.69 kB / 395.3 MB, free: 15.52 MB / 318.1 MB Warning: Assuming fixed start value for the following 1 variables: Q1.vbx:VARIABLE(unit = "V" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003705/0.3478, allocations: 198.7 kB / 395.4 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000146/0.3479, allocations: 111 kB / 395.6 MB, free: 15.3 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/0.349, allocations: 0.4943 MB / 396.1 MB, free: 15.05 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.349, allocations: 2.75 kB / 396.1 MB, free: 15.05 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.349, allocations: 2.312 kB / 396.1 MB, free: 15.05 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.349, allocations: 0 / 396.1 MB, free: 15.05 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006529/0.3497, allocations: 0.5612 MB / 396.6 MB, free: 14.6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.863e-05/0.3498, allocations: 40.98 kB / 396.7 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003061/0.3501, allocations: 51.83 kB / 396.7 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.508e-05/0.3502, allocations: 32.88 kB / 396.7 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.166e-05/0.3502, allocations: 22.52 kB / 396.8 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009731/0.3512, allocations: 1.431 MB / 398.2 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3512, allocations: 0 / 398.2 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001248/0.3525, allocations: 0.6122 MB / 398.8 MB, free: 12.72 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002981/0.3528, allocations: 181.8 kB / 399 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.203e-05/0.3529, allocations: 6.641 kB / 399 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002265/0.3531, allocations: 18.8 kB / 399 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.3532, allocations: 25.03 kB / 399 MB, free: 12.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.203e-05/0.3532, allocations: 12.84 kB / 399 MB, free: 12.52 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007308/0.354, allocations: 0.5443 MB / 399.6 MB, free: 12.2 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.354, allocations: 3.938 kB / 399.6 MB, free: 12.2 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008061/0.3548, allocations: 242.8 kB / 399.8 MB, free: 12.14 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Q1.vbe,Q1.vbc,Q1.vbx) * 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 (22): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0006125/0.3554, allocations: 364 kB / 400.2 MB, free: 11.97 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009788/0.3564, allocations: 0.4908 MB / 400.7 MB, free: 11.67 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3564, allocations: 0 / 400.7 MB, free: 11.67 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005031/0.357, allocations: 331.5 kB / 401 MB, free: 11.45 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005652/0.3575, allocations: 127.4 kB / 401.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002741/0.3603, allocations: 1.646 MB / 402.8 MB, free: 10.43 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004786/0.3608, allocations: 0.9642 MB / 403.7 MB, free: 9.609 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002322/0.361, allocations: 81.02 kB / 403.8 MB, free: 9.57 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.542e-05/0.3611, allocations: 44 kB / 403.9 MB, free: 9.562 MB / 318.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3611, allocations: 0 / 403.9 MB, free: 9.562 MB / 318.1 MB Notification: Performance of Templates: time 0.0149/0.376, allocations: 8.233 MB / 412.1 MB, free: 2.086 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)