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.008838/0.008838, allocations: 100.7 kB / 15.73 MB, free: 6.438 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.001659/0.001658, allocations: 194.9 kB / 16.68 MB, free: 6.355 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.639/1.639, allocations: 205.1 MB / 222.5 MB, free: 4.496 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.001255/0.001255, allocations: 54.77 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1185, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.006056/0.1246, allocations: 3.919 MB / 377.1 MB, free: 13.37 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003004/0.1277, allocations: 1.356 MB / 378.4 MB, free: 12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004252/0.1282, allocations: 7.938 kB / 378.5 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008715/0.1291, allocations: 258.8 kB / 378.7 MB, free: 11.74 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.0006277/0.1297, allocations: 258.4 kB / 379 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007079/0.1304, allocations: 251.5 kB / 379.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000731/0.1312, allocations: 0.724 MB / 379.9 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002992/0.1315, allocations: 172.9 kB / 380.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003504/0.1318, allocations: 279 kB / 380.4 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003365/0.1322, allocations: 294.8 kB / 380.7 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.022e-05/0.1322, allocations: 52 kB / 380.7 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002244/0.1325, allocations: 99.89 kB / 380.8 MB, free: 9.629 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001492/0.1326, allocations: 139.6 kB / 380.9 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002775/0.1329, allocations: 302.4 kB / 381.2 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000739/0.1337, allocations: 0.7084 MB / 381.9 MB, free: 8.484 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.1337, allocations: 0 / 381.9 MB, free: 8.484 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1337, allocations: 0 / 381.9 MB, free: 8.484 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.1337, allocations: 7.984 kB / 382 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.001918/0.1356, allocations: 0.9258 MB / 382.9 MB, free: 7.496 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.373e-05/0.1357, allocations: 12.03 kB / 382.9 MB, free: 7.484 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00015/0.1359, allocations: 64.19 kB / 383 MB, free: 7.422 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006383/0.1365, allocations: 426.7 kB / 383.4 MB, free: 6.965 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.077e-05/0.1366, allocations: 29.38 kB / 383.4 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.772e-05/0.1366, allocations: 44.12 kB / 383.4 MB, free: 6.891 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008151/0.1374, allocations: 437.5 kB / 383.9 MB, free: 6.438 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.1375, allocations: 4 kB / 383.9 MB, free: 6.434 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.566e-05/0.1375, allocations: 19.98 kB / 383.9 MB, free: 6.414 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.1375, allocations: 12 kB / 383.9 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005911/0.1381, allocations: 307.8 kB / 384.2 MB, free: 6.102 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00237/0.1405, allocations: 1.695 MB / 385.9 MB, free: 4.309 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006601/0.1412, allocations: 375 kB / 386.3 MB, free: 3.934 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000301/0.1415, allocations: 180.8 kB / 386.4 MB, free: 3.754 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.937e-05/0.1416, allocations: 7.984 kB / 386.5 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004339/0.142, allocations: 262.4 kB / 386.7 MB, free: 3.461 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 3.096e-06/0.142, allocations: 0 / 386.7 MB, free: 3.461 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.002285/0.1443, allocations: 1.017 MB / 387.7 MB, free: 2.352 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001695/0.1445, allocations: 191.9 kB / 387.9 MB, free: 2.121 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006942/0.1452, allocations: 0.4901 MB / 388.4 MB, free: 1.629 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.112e-05/0.1453, allocations: 37.7 kB / 388.4 MB, free: 1.586 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002043/0.1455, allocations: 256.4 kB / 388.7 MB, free: 1.328 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.596e-05/0.1456, allocations: 122.3 kB / 388.8 MB, free: 1.207 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001319/0.1457, allocations: 82.03 kB / 388.9 MB, free: 1.121 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.1459, allocations: 358.8 kB / 389.2 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002513/0.1461, allocations: 120.8 kB / 389.4 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000313/0.1465, allocations: 221.2 kB / 389.6 MB, free: 400 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004673/0.1469, allocations: 261.2 kB / 389.8 MB, free: 128 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.147, allocations: 0 / 389.8 MB, free: 128 kB / 318.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008489/0.1478, allocations: 489.1 kB / 390.3 MB, free: 15.63 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.1478, allocations: 4 kB / 390.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.1479, allocations: 0 / 390.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000548/0.1484, allocations: 159.4 kB / 390.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002205/0.1486, allocations: 47.91 kB / 390.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00573/0.1544, allocations: 6.658 MB / 397.2 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005022/0.1549, allocations: 51.66 kB / 397.2 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.733e-05/0.155, allocations: 16 kB / 397.2 MB, free: 8.129 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.0004258/0.1554, allocations: 188.1 kB / 397.4 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.1555, allocations: 55.28 kB / 397.5 MB, free: 7.879 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001426/0.1557, allocations: 64.75 kB / 397.5 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.1557, allocations: 4 kB / 397.5 MB, free: 7.809 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.1557, allocations: 0 / 397.5 MB, free: 7.809 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.1557, allocations: 0 / 397.5 MB, free: 7.809 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006338/0.1564, allocations: 489.1 kB / 398 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.1564, allocations: 0 / 398 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001403/0.1565, allocations: 31.92 kB / 398 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004159/0.1569, allocations: 159.3 kB / 398.2 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/0.157, allocations: 8 kB / 398.2 MB, free: 7.074 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005072/0.162, allocations: 6.351 MB / 404.6 MB, free: 172 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.1621, allocations: 0 / 404.6 MB, free: 172 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.1631, allocations: 0.5163 MB / 405.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002169/0.1633, allocations: 156.4 kB / 405.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.577e-05/0.1634, allocations: 11.94 kB / 405.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002799/0.1637, allocations: 31.97 kB / 405.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001725/0.1639, allocations: 55.92 kB / 405.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.29e-05/0.1639, allocations: 8 kB / 405.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004862/0.1644, allocations: 363.1 kB / 405.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1644, allocations: 0 / 405.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009279/0.1654, allocations: 167.7 kB / 405.9 MB, free: 14.83 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.001104/0.1665, allocations: 440.2 kB / 406.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00131/0.1678, allocations: 0.803 MB / 407.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.1678, allocations: 0 / 407.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007674/0.1686, allocations: 0.655 MB / 407.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006106/0.1692, allocations: 113.8 kB / 407.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002251/0.1715, allocations: 0.9708 MB / 408.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005054/0.172, allocations: 0.8634 MB / 409.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001917/0.1722, allocations: 44.17 kB / 409.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.814e-05/0.1723, allocations: 39.42 kB / 409.8 MB, free: 10.74 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1723, allocations: 0 / 409.8 MB, free: 10.74 MB / 350.1 MB Notification: Performance of Templates: time 0.01702/0.1893, allocations: 9.603 MB / 419.4 MB, free: 1.117 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)