Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001412/0.001412, allocations: 105.2 kB / 17.06 MB, free: 5.785 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.001495/0.001495, allocations: 198.9 kB / 18 MB, free: 4.93 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.554/1.554, allocations: 205.1 MB / 223.9 MB, free: 12.21 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.001264/0.001264, allocations: 51.92 kB / 327.9 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1155, allocations: 46.61 MB / 374.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005212/0.1207, allocations: 3.922 MB / 378.4 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2706/0.3913, allocations: 1.347 MB / 379.8 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005381/0.392, allocations: 10 kB / 379.8 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008697/0.3929, allocations: 255.6 kB / 380 MB, free: 9.711 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0007851/0.3937, allocations: 254.5 kB / 380.3 MB, free: 9.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000918/0.3946, allocations: 257.3 kB / 380.5 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009761/0.3956, allocations: 0.7183 MB / 381.2 MB, free: 9.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003665/0.396, allocations: 164.6 kB / 381.4 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005607/0.3965, allocations: 278 kB / 381.7 MB, free: 9.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005425/0.3971, allocations: 311.1 kB / 382 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001348/0.3972, allocations: 50.38 kB / 382 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003654/0.3976, allocations: 93.44 kB / 382.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002325/0.3979, allocations: 145.7 kB / 382.2 MB, free: 9.332 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003746/0.3982, allocations: 301.9 kB / 382.5 MB, free: 9.238 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001167/0.3994, allocations: 0.7044 MB / 383.2 MB, free: 9.117 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.3994, allocations: 1.312 kB / 383.2 MB, free: 9.117 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3994, allocations: 0 / 383.2 MB, free: 9.117 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.622e-05/0.3995, allocations: 0 / 383.2 MB, free: 9.117 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002218/0.4017, allocations: 0.9414 MB / 384.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.104e-05/0.4018, allocations: 9.531 kB / 384.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001738/0.4019, allocations: 69.36 kB / 384.3 MB, free: 8.402 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007768/0.4027, allocations: 415.5 kB / 384.7 MB, free: 8.082 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.06e-05/0.4028, allocations: 29.33 kB / 384.7 MB, free: 8.066 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.361e-05/0.4029, allocations: 39.09 kB / 384.7 MB, free: 8.055 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009007/0.4038, allocations: 451 kB / 385.2 MB, free: 7.824 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/0.4038, allocations: 1.938 kB / 385.2 MB, free: 7.824 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.764e-05/0.4039, allocations: 16.47 kB / 385.2 MB, free: 7.812 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.796e-05/0.4039, allocations: 10.28 kB / 385.2 MB, free: 7.812 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006857/0.4046, allocations: 311.4 kB / 385.5 MB, free: 7.707 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002777/0.4074, allocations: 1.695 MB / 387.2 MB, free: 6.547 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007777/0.4082, allocations: 374.4 kB / 387.6 MB, free: 6.367 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003988/0.4086, allocations: 188.1 kB / 387.8 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.31e-05/0.4086, allocations: 7.25 kB / 387.8 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006718/0.4093, allocations: 256.4 kB / 388 MB, free: 6.133 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 2.114e-06/0.4093, allocations: 0 / 388 MB, free: 6.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.002416/0.4118, allocations: 1.018 MB / 389 MB, free: 5.48 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.382e-05/0.4119, allocations: 187.2 kB / 389.2 MB, free: 5.262 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007593/0.4126, allocations: 0.4931 MB / 389.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.105e-05/0.4127, allocations: 37.58 kB / 389.7 MB, free: 5.004 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001984/0.4129, allocations: 249 kB / 390 MB, free: 4.801 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.413, allocations: 122.1 kB / 390.1 MB, free: 4.711 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001617/0.4132, allocations: 80.05 kB / 390.2 MB, free: 4.664 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.4133, allocations: 362.7 kB / 390.5 MB, free: 4.328 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002586/0.4136, allocations: 123.8 kB / 390.7 MB, free: 4.281 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003461/0.4139, allocations: 216 kB / 390.9 MB, free: 4.133 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005525/0.4145, allocations: 274.5 kB / 391.1 MB, free: 3.988 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.4145, allocations: 1.5 kB / 391.1 MB, free: 3.988 MB / 318.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001054/0.4156, allocations: 474.2 kB / 391.6 MB, free: 3.758 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.477e-05/0.4156, allocations: 9.938 kB / 391.6 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.4156, allocations: 0.5156 kB / 391.6 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000615/0.4163, allocations: 162 kB / 391.8 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002398/0.4165, allocations: 44.48 kB / 391.8 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005207/0.4217, allocations: 6.653 MB / 398.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006476/0.4224, allocations: 61.16 kB / 398.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.136e-05/0.4225, allocations: 13.89 kB / 398.5 MB, free: 13.16 MB / 334.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.0004758/0.4229, allocations: 180.7 kB / 398.7 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001607/0.4231, allocations: 53.34 kB / 398.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001363/0.4233, allocations: 69 kB / 398.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.4233, allocations: 4.969 kB / 398.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.4233, allocations: 4.797 kB / 398.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.4233, allocations: 1.547 kB / 398.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008447/0.4242, allocations: 487.6 kB / 399.3 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.4242, allocations: 3.938 kB / 399.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001633/0.4244, allocations: 33.16 kB / 399.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005036/0.4249, allocations: 154.5 kB / 399.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.569e-05/0.4249, allocations: 19.88 kB / 399.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005786/0.4307, allocations: 6.342 MB / 405.9 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.4308, allocations: 4.875 kB / 405.9 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/0.432, allocations: 0.5064 MB / 406.4 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002613/0.4323, allocations: 157.9 kB / 406.5 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.669e-05/0.4323, allocations: 16.84 kB / 406.6 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000287/0.4326, allocations: 28.88 kB / 406.6 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001854/0.4328, allocations: 52.22 kB / 406.6 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-05/0.4329, allocations: 13.75 kB / 406.6 MB, free: 5.902 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005144/0.4334, allocations: 360 kB / 407 MB, free: 5.742 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4334, allocations: 4 kB / 407 MB, free: 5.738 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009356/0.4343, allocations: 177.3 kB / 407.2 MB, free: 5.699 MB / 334.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.001083/0.4354, allocations: 434 kB / 407.6 MB, free: 5.348 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001573/0.437, allocations: 0.8113 MB / 408.4 MB, free: 4.754 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.437, allocations: 0 / 408.4 MB, free: 4.754 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.4381, allocations: 0.6508 MB / 409.1 MB, free: 4.219 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006486/0.4387, allocations: 109.7 kB / 409.2 MB, free: 4.18 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002394/0.4411, allocations: 0.9686 MB / 410.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006133/0.4418, allocations: 0.8568 MB / 411 MB, free: 2.957 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002866/0.4421, allocations: 52.12 kB / 411 MB, free: 2.941 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001066/0.4422, allocations: 40.14 kB / 411.1 MB, free: 2.926 MB / 334.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4422, allocations: 0 / 411.1 MB, free: 2.926 MB / 334.1 MB Notification: Performance of Templates: time 0.02147/0.4637, allocations: 9.882 MB / 421 MB, free: 14.36 MB / 350.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1)