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.001332/0.001332, allocations: 106.6 kB / 16.92 MB, free: 6.145 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.001506/0.001507, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.695/1.695, allocations: 205.1 MB / 223.7 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.001336/0.001336, allocations: 47.92 kB / 280 MB, free: 3.188 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.104, allocations: 46.64 MB / 326.6 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005465/0.1095, allocations: 3.923 MB / 330.5 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002672/0.1122, allocations: 1.349 MB / 331.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003843/0.1127, allocations: 11.94 kB / 331.9 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000855/0.1136, allocations: 246.8 kB / 332.1 MB, free: 14.91 MB / 286.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.0006677/0.1143, allocations: 258.4 kB / 332.4 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006886/0.115, allocations: 255.5 kB / 332.6 MB, free: 14.41 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007583/0.1157, allocations: 0.7125 MB / 333.4 MB, free: 13.69 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002993/0.116, allocations: 165.1 kB / 333.5 MB, free: 13.52 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003798/0.1164, allocations: 279 kB / 333.8 MB, free: 13.25 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003222/0.1168, allocations: 298.8 kB / 334.1 MB, free: 12.96 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.054e-05/0.1168, allocations: 48 kB / 334.1 MB, free: 12.91 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002624/0.1171, allocations: 99.91 kB / 334.2 MB, free: 12.81 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001535/0.1173, allocations: 143.5 kB / 334.4 MB, free: 12.67 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002777/0.1176, allocations: 302.4 kB / 334.7 MB, free: 12.38 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007293/0.1183, allocations: 0.6929 MB / 335.4 MB, free: 11.68 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1183, allocations: 0 / 335.4 MB, free: 11.68 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1183, allocations: 3.938 kB / 335.4 MB, free: 11.68 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.1183, allocations: 4 kB / 335.4 MB, free: 11.67 MB / 286.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.001678/0.12, allocations: 0.9374 MB / 336.3 MB, free: 10.68 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.1201, allocations: 8.031 kB / 336.3 MB, free: 10.67 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001256/0.1202, allocations: 68.19 kB / 336.4 MB, free: 10.6 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005591/0.1208, allocations: 402.8 kB / 336.8 MB, free: 10.17 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.583e-05/0.1208, allocations: 33.31 kB / 336.8 MB, free: 10.14 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.589e-05/0.1209, allocations: 40.12 kB / 336.8 MB, free: 10.1 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007617/0.1217, allocations: 445.6 kB / 337.3 MB, free: 9.637 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.1217, allocations: 3.938 kB / 337.3 MB, free: 9.633 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.383e-05/0.1217, allocations: 16 kB / 337.3 MB, free: 9.617 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.301e-05/0.1218, allocations: 8 kB / 337.3 MB, free: 9.609 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006328/0.1224, allocations: 315.8 kB / 337.6 MB, free: 9.301 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002511/0.1249, allocations: 1.711 MB / 339.3 MB, free: 7.496 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006852/0.1256, allocations: 370.8 kB / 339.7 MB, free: 7.125 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003148/0.1259, allocations: 192.5 kB / 339.9 MB, free: 6.934 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.328e-05/0.126, allocations: 4 kB / 339.9 MB, free: 6.93 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000469/0.1265, allocations: 266.3 kB / 340.1 MB, free: 6.645 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 2.344e-06/0.1265, allocations: 0 / 340.1 MB, free: 6.645 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002248/0.1287, allocations: 1.013 MB / 341.1 MB, free: 5.539 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001285/0.1289, allocations: 195.8 kB / 341.3 MB, free: 5.305 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006134/0.1295, allocations: 0.4979 MB / 341.8 MB, free: 4.793 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.689e-05/0.1295, allocations: 29.7 kB / 341.9 MB, free: 4.758 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002206/0.1298, allocations: 252.4 kB / 342.1 MB, free: 4.508 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.648e-05/0.1299, allocations: 118.4 kB / 342.2 MB, free: 4.391 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/0.13, allocations: 78.12 kB / 342.3 MB, free: 4.309 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.1302, allocations: 366.7 kB / 342.7 MB, free: 3.941 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002589/0.1305, allocations: 120.8 kB / 342.8 MB, free: 3.82 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003185/0.1308, allocations: 213.2 kB / 343 MB, free: 3.578 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004662/0.1313, allocations: 265.4 kB / 343.2 MB, free: 3.309 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1313, allocations: 0 / 343.2 MB, free: 3.309 MB / 286.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008296/0.1321, allocations: 492.7 kB / 343.7 MB, free: 2.809 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.1321, allocations: 4 kB / 343.7 MB, free: 2.805 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.1322, allocations: 0 / 343.7 MB, free: 2.805 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005294/0.1327, allocations: 159.3 kB / 343.9 MB, free: 2.637 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002208/0.1329, allocations: 39.92 kB / 343.9 MB, free: 2.598 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00525/0.1382, allocations: 6.655 MB / 350.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004494/0.1387, allocations: 51.56 kB / 350.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.258e-05/0.1387, allocations: 20.06 kB / 350.7 MB, free: 11.32 MB / 302.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.0003137/0.139, allocations: 192 kB / 350.8 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.251e-05/0.1391, allocations: 51.38 kB / 350.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001086/0.1393, allocations: 64.69 kB / 351 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.1393, allocations: 4 kB / 351 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1393, allocations: 0 / 351 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.1393, allocations: 3.984 kB / 351 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005134/0.1398, allocations: 489.1 kB / 351.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.1398, allocations: 4 kB / 351.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001358/0.14, allocations: 28.05 kB / 351.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004323/0.1404, allocations: 163.3 kB / 351.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.585e-05/0.1404, allocations: 8 kB / 351.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005074/0.1455, allocations: 6.363 MB / 358 MB, free: 3.344 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.1456, allocations: 4.031 kB / 358 MB, free: 3.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001088/0.1467, allocations: 0.5086 MB / 358.5 MB, free: 2.801 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002276/0.1469, allocations: 160.3 kB / 358.7 MB, free: 2.625 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.784e-05/0.147, allocations: 11.98 kB / 358.7 MB, free: 2.613 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002812/0.1473, allocations: 23.98 kB / 358.7 MB, free: 2.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001667/0.1474, allocations: 59.86 kB / 358.8 MB, free: 2.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.15e-05/0.1475, allocations: 12 kB / 358.8 MB, free: 2.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004567/0.1479, allocations: 363.1 kB / 359.1 MB, free: 2.164 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.148, allocations: 0 / 359.1 MB, free: 2.164 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008388/0.1488, allocations: 163.7 kB / 359.3 MB, free: 2.004 MB / 302.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.001078/0.1499, allocations: 438.4 kB / 359.7 MB, free: 1.582 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001345/0.1512, allocations: 0.8109 MB / 360.5 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1513, allocations: 0 / 360.5 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007732/0.152, allocations: 0.6588 MB / 361.2 MB, free: 8 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006787/0.1527, allocations: 117.8 kB / 361.3 MB, free: 15.89 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002089/0.1548, allocations: 0.9839 MB / 362.3 MB, free: 14.89 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004323/0.1553, allocations: 0.8634 MB / 363.1 MB, free: 14 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000204/0.1555, allocations: 52.09 kB / 363.2 MB, free: 13.94 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.1e-05/0.1556, allocations: 35.44 kB / 363.2 MB, free: 13.91 MB / 318.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1556, allocations: 0 / 363.2 MB, free: 13.91 MB / 318.1 MB Notification: Performance of Templates: time 0.01723/0.1728, allocations: 9.497 MB / 372.7 MB, free: 4.391 MB / 318.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)