Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008663/0.0008663, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.006165/0.006165, allocations: 169.8 kB / 16.27 MB, free: 6.332 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.73/1.73, allocations: 205.4 MB / 222.4 MB, free: 5.77 MB / 174.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.0005697/0.0005698, allocations: 12 kB / 279.4 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3106/0.3112, allocations: 47.58 MB / 327 MB, free: 1.379 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.004289/0.3155, allocations: 3.564 MB / 330.6 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002987/0.3185, allocations: 1.323 MB / 331.9 MB, free: 13.48 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004471/0.319, allocations: 5.688 kB / 331.9 MB, free: 13.48 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001099/0.3201, allocations: 220.8 kB / 332.1 MB, free: 13.34 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007689/0.3209, allocations: 228.9 kB / 332.4 MB, free: 13.17 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008759/0.3218, allocations: 229.6 kB / 332.6 MB, free: 13 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009622/0.3228, allocations: 0.687 MB / 333.3 MB, free: 12.6 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003492/0.3231, allocations: 155.3 kB / 333.4 MB, free: 12.5 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003725/0.3235, allocations: 235.1 kB / 333.7 MB, free: 12.38 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003592/0.3239, allocations: 268.3 kB / 333.9 MB, free: 12.21 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.527e-05/0.324, allocations: 23.88 kB / 333.9 MB, free: 12.21 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002363/0.3242, allocations: 71.42 kB / 334 MB, free: 12.19 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001459/0.3244, allocations: 116.3 kB / 334.1 MB, free: 12.11 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003243/0.3247, allocations: 289.5 kB / 334.4 MB, free: 11.9 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007262/0.3254, allocations: 0.658 MB / 335.1 MB, free: 11.33 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.3254, allocations: 0 / 335.1 MB, free: 11.33 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3254, allocations: 0 / 335.1 MB, free: 11.33 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.704e-06/0.3255, allocations: 0 / 335.1 MB, free: 11.33 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001629/0.3271, allocations: 0.8558 MB / 335.9 MB, free: 10.42 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.3271, allocations: 8.031 kB / 335.9 MB, free: 10.41 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001312/0.3273, allocations: 68.19 kB / 336 MB, free: 10.34 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005356/0.3278, allocations: 406.8 kB / 336.4 MB, free: 9.906 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.797e-05/0.3279, allocations: 29.38 kB / 336.4 MB, free: 9.879 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.991e-05/0.3279, allocations: 40.12 kB / 336.5 MB, free: 9.84 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007637/0.3287, allocations: 449.5 kB / 336.9 MB, free: 9.379 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.3287, allocations: 0 / 336.9 MB, free: 9.379 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.809e-05/0.3288, allocations: 19.98 kB / 336.9 MB, free: 9.359 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.3288, allocations: 12 kB / 336.9 MB, free: 9.348 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000606/0.3294, allocations: 311.8 kB / 337.2 MB, free: 9.043 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002532/0.332, allocations: 1.722 MB / 339 MB, free: 7.227 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007292/0.3327, allocations: 379 kB / 339.3 MB, free: 6.848 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003291/0.333, allocations: 192.3 kB / 339.5 MB, free: 6.656 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.874e-05/0.3331, allocations: 4 kB / 339.5 MB, free: 6.652 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004661/0.3336, allocations: 258.5 kB / 339.8 MB, free: 6.371 MB / 270.1 MB Notification: Performance of pre-optimization done (n=40): time 1.623e-06/0.3336, allocations: 0 / 339.8 MB, free: 6.371 MB / 270.1 MB Notification: Performance of matching and sorting (n=40): time 0.002192/0.3358, allocations: 1.036 MB / 340.8 MB, free: 5.242 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.3359, allocations: 191.8 kB / 341 MB, free: 5.012 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006249/0.3365, allocations: 497.9 kB / 341.5 MB, free: 4.508 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.033e-05/0.3366, allocations: 41.62 kB / 341.5 MB, free: 4.461 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001982/0.3368, allocations: 256.3 kB / 341.8 MB, free: 4.207 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.3369, allocations: 114.4 kB / 341.9 MB, free: 4.094 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.896e-05/0.337, allocations: 49.69 kB / 341.9 MB, free: 4.039 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.3372, allocations: 358.8 kB / 342.3 MB, free: 3.68 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002565/0.3374, allocations: 124.8 kB / 342.4 MB, free: 3.555 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003216/0.3378, allocations: 209.3 kB / 342.6 MB, free: 3.316 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004728/0.3382, allocations: 273.3 kB / 342.9 MB, free: 3.039 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3383, allocations: 0 / 342.9 MB, free: 3.039 MB / 270.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008258/0.3391, allocations: 488.7 kB / 343.3 MB, free: 2.543 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.3391, allocations: 4 kB / 343.4 MB, free: 2.539 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.3391, allocations: 7.984 kB / 343.4 MB, free: 2.531 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005219/0.3397, allocations: 155.4 kB / 343.5 MB, free: 2.367 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002177/0.3399, allocations: 51.91 kB / 343.6 MB, free: 2.316 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004989/0.3449, allocations: 5.954 MB / 349.5 MB, free: 11.83 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004217/0.3453, allocations: 59.75 kB / 349.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.195e-05/0.3454, allocations: 16 kB / 349.6 MB, free: 11.75 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,IdealGTOThyristor2.off,IdealThyristor2.off,$PRE.IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEvent,IdealGTOThyristor1.off,IdealThyristor1.fire,IdealThyristor1.off,$PRE.IdealThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000294/0.3457, allocations: 188 kB / 349.8 MB, free: 11.56 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.756e-05/0.3458, allocations: 59.27 kB / 349.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001191/0.3459, allocations: 60.77 kB / 349.9 MB, free: 11.44 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.3459, allocations: 4 kB / 349.9 MB, free: 11.44 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3459, allocations: 128 / 349.9 MB, free: 11.44 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.797e-06/0.3459, allocations: 3.984 kB / 349.9 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000545/0.3465, allocations: 0.4892 MB / 350.4 MB, free: 10.9 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.3465, allocations: 0 / 350.4 MB, free: 10.9 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001344/0.3466, allocations: 35.91 kB / 350.4 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004253/0.3471, allocations: 155.3 kB / 350.6 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.568e-05/0.3471, allocations: 11.98 kB / 350.6 MB, free: 10.69 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00478/0.3519, allocations: 5.796 MB / 356.4 MB, free: 4.352 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.3519, allocations: 3.938 kB / 356.4 MB, free: 4.348 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.3532, allocations: 0.5241 MB / 356.9 MB, free: 3.793 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000223/0.3534, allocations: 152.4 kB / 357.1 MB, free: 3.625 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.442e-05/0.3535, allocations: 15.98 kB / 357.1 MB, free: 3.609 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002847/0.3538, allocations: 31.98 kB / 357.1 MB, free: 3.578 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001609/0.354, allocations: 55.91 kB / 357.2 MB, free: 3.523 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.389e-05/0.354, allocations: 12 kB / 357.2 MB, free: 3.512 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000448/0.3544, allocations: 359.1 kB / 357.5 MB, free: 3.164 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3545, allocations: 4 kB / 357.5 MB, free: 3.16 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008423/0.3553, allocations: 171.7 kB / 357.7 MB, free: 2.992 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001103/0.3564, allocations: 429.3 kB / 358.1 MB, free: 2.57 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00115/0.3576, allocations: 0.7992 MB / 358.9 MB, free: 1.719 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.3576, allocations: 0 / 358.9 MB, free: 1.719 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007046/0.3583, allocations: 0.6511 MB / 359.6 MB, free: 1.016 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006116/0.3589, allocations: 121.6 kB / 359.7 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002045/0.361, allocations: 1.176 MB / 360.9 MB, free: 15.69 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005175/0.3615, allocations: 0.8632 MB / 361.7 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002283/0.3618, allocations: 48.16 kB / 361.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.032e-05/0.3619, allocations: 31.44 kB / 361.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3619, allocations: 0 / 361.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of Templates: time 0.01642/0.3783, allocations: 8.69 MB / 370.5 MB, free: 6.02 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1)