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.001191/0.001191, allocations: 113.8 kB / 17.06 MB, free: 6.004 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.001055/0.001055, allocations: 191 kB / 18 MB, free: 5.086 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.564/1.564, allocations: 205.1 MB / 223.9 MB, free: 12.29 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.002122/0.002123, allocations: 63.86 kB / 327.9 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1336, allocations: 46.61 MB / 374.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005967/0.1396, allocations: 3.922 MB / 378.4 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2596/0.3993, allocations: 1.348 MB / 379.8 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000407/0.3997, allocations: 9.5 kB / 379.8 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008609/0.4006, allocations: 248 kB / 380 MB, free: 9.703 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.0006969/0.4013, allocations: 254 kB / 380.3 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007172/0.4021, allocations: 261.6 kB / 380.5 MB, free: 9.637 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008946/0.403, allocations: 0.7153 MB / 381.2 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003018/0.4033, allocations: 170.7 kB / 381.4 MB, free: 9.469 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004726/0.4038, allocations: 282.5 kB / 381.7 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004367/0.4042, allocations: 298 kB / 382 MB, free: 9.352 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001282/0.4043, allocations: 50.59 kB / 382 MB, free: 9.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002703/0.4046, allocations: 97.98 kB / 382.1 MB, free: 9.348 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001753/0.4048, allocations: 145.6 kB / 382.3 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003266/0.4051, allocations: 303.7 kB / 382.5 MB, free: 9.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009085/0.4061, allocations: 0.704 MB / 383.3 MB, free: 9.105 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.4061, allocations: 0.8438 kB / 383.3 MB, free: 9.105 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.4061, allocations: 0 / 383.3 MB, free: 9.105 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.4061, allocations: 5.031 kB / 383.3 MB, free: 9.102 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.001626/0.4077, allocations: 0.962 MB / 384.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.4078, allocations: 9.281 kB / 384.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.4079, allocations: 70.55 kB / 384.3 MB, free: 8.387 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00054/0.4085, allocations: 411.2 kB / 384.7 MB, free: 8.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.365e-05/0.4085, allocations: 28.56 kB / 384.7 MB, free: 8.055 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.532e-05/0.4086, allocations: 40.02 kB / 384.8 MB, free: 8.043 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007806/0.4094, allocations: 447.9 kB / 385.2 MB, free: 7.812 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/0.4094, allocations: 0 / 385.2 MB, free: 7.812 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.503e-05/0.4095, allocations: 16.61 kB / 385.2 MB, free: 7.801 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.976e-05/0.4095, allocations: 10.09 kB / 385.2 MB, free: 7.801 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007793/0.4103, allocations: 313.1 kB / 385.5 MB, free: 7.695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002902/0.4132, allocations: 1.716 MB / 387.3 MB, free: 6.516 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007218/0.4139, allocations: 367.2 kB / 387.6 MB, free: 6.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003541/0.4143, allocations: 184.6 kB / 387.8 MB, free: 6.266 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.092e-05/0.4143, allocations: 8.234 kB / 387.8 MB, free: 6.262 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004912/0.4148, allocations: 255.7 kB / 388 MB, free: 6.109 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 2.224e-06/0.4149, allocations: 0 / 388 MB, free: 6.109 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.002289/0.4172, allocations: 1.022 MB / 389.1 MB, free: 5.457 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/0.4173, allocations: 185.9 kB / 389.3 MB, free: 5.238 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008916/0.4182, allocations: 0.4977 MB / 389.7 MB, free: 5.016 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.244e-05/0.4182, allocations: 36.7 kB / 389.8 MB, free: 4.977 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002448/0.4185, allocations: 256.4 kB / 390 MB, free: 4.766 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/0.4186, allocations: 131 kB / 390.2 MB, free: 4.668 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001649/0.4188, allocations: 76.55 kB / 390.2 MB, free: 4.625 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.4189, allocations: 361.3 kB / 390.6 MB, free: 4.289 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002594/0.4192, allocations: 124 kB / 390.7 MB, free: 4.246 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003339/0.4196, allocations: 208.1 kB / 390.9 MB, free: 4.105 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004969/0.4201, allocations: 274.5 kB / 391.2 MB, free: 3.961 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.4201, allocations: 0 / 391.2 MB, free: 3.961 MB / 318.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009331/0.421, allocations: 484.9 kB / 391.7 MB, free: 3.719 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/0.421, allocations: 5.594 kB / 391.7 MB, free: 3.719 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.4211, allocations: 2.156 kB / 391.7 MB, free: 3.719 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000584/0.4216, allocations: 154.7 kB / 391.8 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002391/0.4219, allocations: 48.94 kB / 391.9 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005381/0.4273, allocations: 6.658 MB / 398.5 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005592/0.4279, allocations: 55.47 kB / 398.6 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.691e-05/0.4279, allocations: 14.69 kB / 398.6 MB, free: 13.12 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.0004144/0.4283, allocations: 189.8 kB / 398.8 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.4285, allocations: 53.48 kB / 398.8 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001617/0.4286, allocations: 69.64 kB / 398.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.4287, allocations: 8 kB / 398.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.4287, allocations: 0 / 398.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.4287, allocations: 3.688 kB / 398.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008982/0.4296, allocations: 495.5 kB / 399.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.4296, allocations: 1.531 kB / 399.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001459/0.4298, allocations: 23.59 kB / 399.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005085/0.4303, allocations: 166.2 kB / 399.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.467e-05/0.4303, allocations: 11.64 kB / 399.6 MB, free: 12.49 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006357/0.4367, allocations: 6.354 MB / 405.9 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.4367, allocations: 0.6094 kB / 405.9 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0013/0.438, allocations: 0.503 MB / 406.4 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002449/0.4383, allocations: 167.3 kB / 406.6 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.949e-05/0.4384, allocations: 15.86 kB / 406.6 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003156/0.4387, allocations: 28.41 kB / 406.7 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001987/0.4389, allocations: 56.39 kB / 406.7 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.907e-05/0.4389, allocations: 9.188 kB / 406.7 MB, free: 5.852 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005054/0.4394, allocations: 363.4 kB / 407.1 MB, free: 5.688 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4395, allocations: 0 / 407.1 MB, free: 5.688 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000884/0.4403, allocations: 172.6 kB / 407.2 MB, free: 5.652 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.001028/0.4414, allocations: 437.7 kB / 407.7 MB, free: 5.297 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001457/0.4428, allocations: 0.8016 MB / 408.5 MB, free: 4.711 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.4429, allocations: 1.375 kB / 408.5 MB, free: 4.711 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007629/0.4436, allocations: 0.6581 MB / 409.1 MB, free: 4.168 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005809/0.4442, allocations: 116.5 kB / 409.2 MB, free: 4.121 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002256/0.4465, allocations: 0.9835 MB / 410.2 MB, free: 3.586 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005552/0.4471, allocations: 0.8567 MB / 411.1 MB, free: 2.883 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002174/0.4473, allocations: 56.48 kB / 411.1 MB, free: 2.863 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.546e-05/0.4474, allocations: 36.61 kB / 411.2 MB, free: 2.852 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4474, allocations: 0 / 411.2 MB, free: 2.852 MB / 334.1 MB Notification: Performance of Templates: time 0.01804/0.4655, allocations: 9.604 MB / 420.8 MB, free: 14.56 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)