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.0009365/0.0009363, allocations: 95.58 kB / 16.65 MB, free: 6.602 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.0009728/0.000973, allocations: 175.3 kB / 17.56 MB, free: 6.203 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.766/1.766, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.0004568/0.0004568, allocations: 12 kB / 280.7 MB, free: 3.43 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1123, allocations: 47.59 MB / 328.3 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.004478/0.1169, allocations: 3.552 MB / 331.9 MB, free: 200 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002451/0.1194, allocations: 1.322 MB / 333.2 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002689/0.1197, allocations: 11.94 kB / 333.2 MB, free: 14.85 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007561/0.1205, allocations: 231.2 kB / 333.4 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005232/0.121, allocations: 226.7 kB / 333.7 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000604/0.1216, allocations: 219.7 kB / 333.9 MB, free: 14.19 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007201/0.1223, allocations: 0.689 MB / 334.6 MB, free: 13.5 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002803/0.1226, allocations: 145.4 kB / 334.7 MB, free: 13.35 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003132/0.123, allocations: 247 kB / 334.9 MB, free: 13.11 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003232/0.1233, allocations: 270.7 kB / 335.2 MB, free: 12.84 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.735e-05/0.1234, allocations: 24 kB / 335.2 MB, free: 12.82 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001863/0.1236, allocations: 63.97 kB / 335.3 MB, free: 12.75 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001368/0.1237, allocations: 115.5 kB / 335.4 MB, free: 12.64 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002601/0.124, allocations: 300.1 kB / 335.7 MB, free: 12.34 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006097/0.1246, allocations: 0.646 MB / 336.3 MB, free: 11.69 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1246, allocations: 0 / 336.3 MB, free: 11.69 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.1246, allocations: 0 / 336.3 MB, free: 11.69 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.236e-06/0.1246, allocations: 0 / 336.3 MB, free: 11.69 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.001517/0.1261, allocations: 0.8558 MB / 337.2 MB, free: 10.78 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.1262, allocations: 12.03 kB / 337.2 MB, free: 10.77 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.1263, allocations: 68.19 kB / 337.3 MB, free: 10.7 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005276/0.1269, allocations: 406.8 kB / 337.7 MB, free: 10.26 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.366e-05/0.1269, allocations: 29.38 kB / 337.7 MB, free: 10.23 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.639e-05/0.127, allocations: 44.12 kB / 337.7 MB, free: 10.19 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007846/0.1278, allocations: 445.5 kB / 338.2 MB, free: 9.734 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.1278, allocations: 3.984 kB / 338.2 MB, free: 9.73 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.369e-05/0.1278, allocations: 16 kB / 338.2 MB, free: 9.715 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.689e-05/0.1279, allocations: 8 kB / 338.2 MB, free: 9.707 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006113/0.1285, allocations: 327.8 kB / 338.5 MB, free: 9.387 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002363/0.1308, allocations: 1.71 MB / 340.2 MB, free: 7.582 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006802/0.1315, allocations: 367 kB / 340.6 MB, free: 7.215 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003227/0.1319, allocations: 195.9 kB / 340.8 MB, free: 7.023 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.869e-05/0.1319, allocations: 7.984 kB / 340.8 MB, free: 7.016 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004486/0.1324, allocations: 270.4 kB / 341.1 MB, free: 6.723 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 1.944e-06/0.1324, allocations: 0 / 341.1 MB, free: 6.723 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002172/0.1346, allocations: 1.028 MB / 342.1 MB, free: 5.602 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.1347, allocations: 187.9 kB / 342.3 MB, free: 5.375 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000579/0.1353, allocations: 0.4902 MB / 342.8 MB, free: 4.867 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.374e-05/0.1353, allocations: 41.64 kB / 342.8 MB, free: 4.82 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001966/0.1355, allocations: 252.4 kB / 343 MB, free: 4.57 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.941e-05/0.1356, allocations: 130.2 kB / 343.2 MB, free: 4.441 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.527e-05/0.1357, allocations: 37.7 kB / 343.2 MB, free: 4.398 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1359, allocations: 358.8 kB / 343.6 MB, free: 4.039 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002474/0.1361, allocations: 120.8 kB / 343.7 MB, free: 3.918 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003417/0.1365, allocations: 221.2 kB / 343.9 MB, free: 3.668 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005116/0.137, allocations: 273.3 kB / 344.2 MB, free: 3.391 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.137, allocations: 4 kB / 344.2 MB, free: 3.387 MB / 286.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009283/0.1379, allocations: 480.8 kB / 344.6 MB, free: 2.898 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.918e-05/0.138, allocations: 8 kB / 344.6 MB, free: 2.891 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.138, allocations: 0 / 344.6 MB, free: 2.891 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006071/0.1386, allocations: 163.4 kB / 344.8 MB, free: 2.719 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002446/0.1389, allocations: 43.97 kB / 344.8 MB, free: 2.676 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005368/0.1442, allocations: 5.966 MB / 350.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000466/0.1447, allocations: 63.56 kB / 350.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.36e-05/0.1448, allocations: 12 kB / 350.9 MB, free: 12.11 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.0003209/0.1451, allocations: 192 kB / 351.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.421e-05/0.1452, allocations: 51.38 kB / 351.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000123/0.1453, allocations: 64.75 kB / 351.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.1453, allocations: 4 kB / 351.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.1454, allocations: 0 / 351.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1454, allocations: 3.938 kB / 351.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005518/0.1459, allocations: 489.1 kB / 351.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.1459, allocations: 4.125 kB / 351.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001404/0.1461, allocations: 31.92 kB / 351.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004558/0.1465, allocations: 159.3 kB / 351.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.72e-05/0.1466, allocations: 4 kB / 351.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004561/0.1512, allocations: 5.811 MB / 357.7 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.1512, allocations: 8.062 kB / 357.7 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001058/0.1522, allocations: 0.5045 MB / 358.2 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001977/0.1525, allocations: 164.4 kB / 358.4 MB, free: 3.977 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.05e-05/0.1525, allocations: 8 kB / 358.4 MB, free: 3.969 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000283/0.1528, allocations: 39.97 kB / 358.4 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/0.153, allocations: 47.92 kB / 358.4 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.904e-05/0.153, allocations: 12 kB / 358.5 MB, free: 3.871 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003963/0.1534, allocations: 359.1 kB / 358.8 MB, free: 3.523 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1534, allocations: 4 kB / 358.8 MB, free: 3.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008408/0.1543, allocations: 171.7 kB / 359 MB, free: 3.352 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.001056/0.1553, allocations: 425.1 kB / 359.4 MB, free: 2.941 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001259/0.1566, allocations: 0.7992 MB / 360.2 MB, free: 2.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/0.1566, allocations: 0 / 360.2 MB, free: 2.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007258/0.1574, allocations: 0.6589 MB / 360.9 MB, free: 1.379 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006276/0.158, allocations: 117.7 kB / 361 MB, free: 1.266 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00205/0.1601, allocations: 1.18 MB / 362.1 MB, free: 60 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004986/0.1606, allocations: 0.8593 MB / 363 MB, free: 15.18 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001961/0.1608, allocations: 48.16 kB / 363.1 MB, free: 15.12 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.976e-05/0.1609, allocations: 35.42 kB / 363.1 MB, free: 15.09 MB / 318.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1609, allocations: 4 kB / 363.1 MB, free: 15.09 MB / 318.1 MB Notification: Performance of Templates: time 0.01509/0.176, allocations: 8.686 MB / 371.8 MB, free: 6.387 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)