Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.007254/0.007254, allocations: 109.1 kB / 15.74 MB, free: 6.016 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.001248/0.001248, allocations: 194.3 kB / 16.68 MB, free: 5.941 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.643/1.643, allocations: 205.1 MB / 222.5 MB, free: 4.383 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.001393/0.001393, allocations: 58.86 kB / 326.6 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1464/0.1478, allocations: 46.61 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.00796/0.1558, allocations: 3.919 MB / 377.1 MB, free: 13.35 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003991/0.1599, allocations: 1.356 MB / 378.4 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005653/0.1606, allocations: 11.94 kB / 378.5 MB, free: 11.97 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001137/0.1617, allocations: 254.8 kB / 378.7 MB, free: 11.72 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.0009644/0.1627, allocations: 250.4 kB / 379 MB, free: 11.47 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001008/0.1637, allocations: 259.4 kB / 379.2 MB, free: 11.22 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001138/0.1649, allocations: 0.7123 MB / 379.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004131/0.1653, allocations: 172.9 kB / 380.1 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004855/0.1658, allocations: 279 kB / 380.4 MB, free: 10.06 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005947/0.1664, allocations: 302.8 kB / 380.7 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.1665, allocations: 51.94 kB / 380.7 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003429/0.1669, allocations: 95.97 kB / 380.8 MB, free: 9.617 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002062/0.1671, allocations: 139.6 kB / 380.9 MB, free: 9.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004276/0.1675, allocations: 306.4 kB / 381.2 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001105/0.1687, allocations: 0.7007 MB / 381.9 MB, free: 8.477 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.1687, allocations: 0 / 381.9 MB, free: 8.477 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1687, allocations: 0 / 381.9 MB, free: 8.477 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.844e-05/0.1687, allocations: 0 / 381.9 MB, free: 8.477 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.002564/0.1713, allocations: 0.9414 MB / 382.9 MB, free: 7.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.527e-05/0.1714, allocations: 15.97 kB / 382.9 MB, free: 7.465 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001816/0.1716, allocations: 64.19 kB / 383 MB, free: 7.402 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008807/0.1725, allocations: 418.8 kB / 383.4 MB, free: 6.953 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.265e-05/0.1725, allocations: 29.38 kB / 383.4 MB, free: 6.922 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.644e-05/0.1726, allocations: 40.12 kB / 383.4 MB, free: 6.883 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001211/0.1739, allocations: 445.5 kB / 383.9 MB, free: 6.422 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.1739, allocations: 0 / 383.9 MB, free: 6.422 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.454e-05/0.174, allocations: 16 kB / 383.9 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.758e-05/0.174, allocations: 8 kB / 383.9 MB, free: 6.398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008304/0.1748, allocations: 315.8 kB / 384.2 MB, free: 6.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003188/0.178, allocations: 1.695 MB / 385.9 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.1791, allocations: 374.9 kB / 386.3 MB, free: 3.922 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004772/0.1796, allocations: 184.8 kB / 386.4 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.358e-05/0.1797, allocations: 4 kB / 386.4 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006527/0.1803, allocations: 262.4 kB / 386.7 MB, free: 3.449 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 2.916e-06/0.1803, allocations: 0 / 386.7 MB, free: 3.449 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.003173/0.1835, allocations: 1.021 MB / 387.7 MB, free: 2.336 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001574/0.1837, allocations: 191.9 kB / 387.9 MB, free: 2.105 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000866/0.1846, allocations: 0.4901 MB / 388.4 MB, free: 1.613 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.278e-05/0.1846, allocations: 37.7 kB / 388.4 MB, free: 1.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000267/0.1849, allocations: 252.4 kB / 388.7 MB, free: 1.316 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001378/0.1851, allocations: 126.3 kB / 388.8 MB, free: 1.191 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001864/0.1853, allocations: 82.03 kB / 388.9 MB, free: 1.105 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.1855, allocations: 358.8 kB / 389.2 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003647/0.1858, allocations: 120.8 kB / 389.4 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004784/0.1863, allocations: 213.2 kB / 389.6 MB, free: 392 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006851/0.187, allocations: 273.1 kB / 389.8 MB, free: 108 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.187, allocations: 0 / 389.8 MB, free: 108 kB / 318.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001212/0.1883, allocations: 476.8 kB / 390.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.79e-05/0.1883, allocations: 12.08 kB / 390.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.1883, allocations: 0 / 390.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007384/0.1891, allocations: 159.3 kB / 390.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003173/0.1894, allocations: 55.84 kB / 390.5 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007043/0.1965, allocations: 6.647 MB / 397.2 MB, free: 8.184 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005989/0.1971, allocations: 55.72 kB / 397.2 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.557e-05/0.1972, allocations: 12 kB / 397.2 MB, free: 8.117 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.0003732/0.1976, allocations: 184 kB / 397.4 MB, free: 7.926 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.1977, allocations: 63.28 kB / 397.5 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001433/0.1978, allocations: 56.75 kB / 397.5 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.1979, allocations: 4 kB / 397.5 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.1979, allocations: 4 kB / 397.5 MB, free: 7.797 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.1979, allocations: 4 kB / 397.5 MB, free: 7.793 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007444/0.1986, allocations: 497 kB / 398 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.1987, allocations: 0 / 398 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001912/0.1989, allocations: 23.98 kB / 398 MB, free: 7.234 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006569/0.1995, allocations: 159.3 kB / 398.2 MB, free: 7.066 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.722e-05/0.1996, allocations: 8 kB / 398.2 MB, free: 7.059 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006644/0.2062, allocations: 6.351 MB / 404.6 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.2063, allocations: 4.125 kB / 404.6 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001571/0.2079, allocations: 0.5046 MB / 405.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002703/0.2082, allocations: 160.4 kB / 405.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.615e-05/0.2083, allocations: 12 kB / 405.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003514/0.2086, allocations: 35.91 kB / 405.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001983/0.2089, allocations: 51.92 kB / 405.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.073e-05/0.2089, allocations: 8 kB / 405.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005938/0.2095, allocations: 359.1 kB / 405.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.364e-06/0.2095, allocations: 0 / 405.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001275/0.2108, allocations: 179.6 kB / 405.9 MB, free: 14.8 MB / 350.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.001633/0.2125, allocations: 436.2 kB / 406.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001824/0.2143, allocations: 0.8069 MB / 407.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.2143, allocations: 0 / 407.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.2154, allocations: 0.6509 MB / 407.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008027/0.2162, allocations: 110 kB / 407.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0027/0.2189, allocations: 0.9709 MB / 408.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005943/0.2196, allocations: 0.8595 MB / 409.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000241/0.2198, allocations: 40.19 kB / 409.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/0.2199, allocations: 47.36 kB / 409.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of SimCode: time 7.22e-07/0.2199, allocations: 0 / 409.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of Templates: time 0.02338/0.2433, allocations: 9.876 MB / 419.6 MB, free: 0.832 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1)