Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001712/0.001713, allocations: 114.6 kB / 16.63 MB, free: 6.812 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.001742/0.001742, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.45/1.45, allocations: 205.1 MB / 223.4 MB, free: 12.36 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.00126/0.001261, allocations: 55.92 kB / 279.5 MB, free: 3.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09974/0.101, allocations: 46.62 MB / 326.1 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004616/0.1057, allocations: 3.936 MB / 330.1 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001542/0.1072, allocations: 1.018 MB / 331.1 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001959/0.1075, allocations: 4 kB / 331.1 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002163/0.1077, allocations: 63.52 kB / 331.2 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002476/0.1079, allocations: 134.8 kB / 331.3 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003922/0.1083, allocations: 191.8 kB / 331.5 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006671/0.109, allocations: 0.7473 MB / 332.2 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002928/0.1093, allocations: 173.2 kB / 332.4 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003626/0.1097, allocations: 287 kB / 332.7 MB, free: 14.2 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000356/0.1101, allocations: 334.7 kB / 333 MB, free: 13.88 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.602e-05/0.1102, allocations: 80 kB / 333.1 MB, free: 13.8 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001024/0.1103, allocations: 80 kB / 333.2 MB, free: 13.72 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.1104, allocations: 151.5 kB / 333.3 MB, free: 13.57 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002536/0.1107, allocations: 314.6 kB / 333.6 MB, free: 13.26 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006309/0.1113, allocations: 0.7905 MB / 334.4 MB, free: 12.47 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1113, allocations: 4 kB / 334.4 MB, free: 12.46 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1113, allocations: 0 / 334.4 MB, free: 12.46 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.1113, allocations: 0 / 334.4 MB, free: 12.46 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002457/0.1138, allocations: 0.9719 MB / 335.4 MB, free: 11.44 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.1138, allocations: 16.03 kB / 335.4 MB, free: 11.42 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.114, allocations: 60.22 kB / 335.4 MB, free: 11.36 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004568/0.1144, allocations: 405.9 kB / 335.8 MB, free: 10.93 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.096e-05/0.1145, allocations: 25.38 kB / 335.9 MB, free: 10.9 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.374e-05/0.1146, allocations: 44.12 kB / 335.9 MB, free: 10.86 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.1158, allocations: 0.5552 MB / 336.5 MB, free: 10.28 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.1158, allocations: 7.938 kB / 336.5 MB, free: 10.27 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.13e-05/0.1159, allocations: 16 kB / 336.5 MB, free: 10.26 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.1159, allocations: 8 kB / 336.5 MB, free: 10.25 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001553/0.1175, allocations: 0.5699 MB / 337.1 MB, free: 9.684 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003283/0.1208, allocations: 2.02 MB / 339.1 MB, free: 7.566 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003731/0.1245, allocations: 0.7952 MB / 339.9 MB, free: 6.762 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000876/0.1254, allocations: 369.2 kB / 340.2 MB, free: 6.398 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.141e-05/0.1255, allocations: 4 kB / 340.2 MB, free: 6.395 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00106/0.1265, allocations: 403.4 kB / 340.6 MB, free: 5.984 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 2.084e-06/0.1265, allocations: 3.938 kB / 340.6 MB, free: 5.98 MB / 286.1 MB Notification: Performance of matching and sorting (n=39): time 0.009798/0.1363, allocations: 1.786 MB / 342.4 MB, free: 4.164 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.263e-05/0.1365, allocations: 89.03 kB / 342.5 MB, free: 4.059 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004813/0.1369, allocations: 385.7 kB / 342.9 MB, free: 3.672 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.682e-05/0.137, allocations: 33.7 kB / 342.9 MB, free: 3.633 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001619/0.1372, allocations: 224.6 kB / 343.1 MB, free: 3.406 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.1373, allocations: 126.1 kB / 343.3 MB, free: 3.281 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001652/0.1375, allocations: 78.05 kB / 343.3 MB, free: 3.195 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.1376, allocations: 346.8 kB / 343.7 MB, free: 2.848 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007626/0.1384, allocations: 268.6 kB / 343.9 MB, free: 2.586 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008/0.1392, allocations: 317.9 kB / 344.3 MB, free: 2.266 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/0.1407, allocations: 0.5329 MB / 344.8 MB, free: 1.719 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.1408, allocations: 4 kB / 344.8 MB, free: 1.715 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004641/0.1454, allocations: 1.06 MB / 345.9 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.936e-05/0.1455, allocations: 37.7 kB / 345.9 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.1455, allocations: 0 / 345.9 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001168/0.1467, allocations: 404.4 kB / 346.3 MB, free: 204 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000425/0.1471, allocations: 75.94 kB / 346.4 MB, free: 128 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008352/0.1555, allocations: 3.675 MB / 350 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007856/0.1563, allocations: 79.62 kB / 350.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.669e-05/0.1564, allocations: 15.98 kB / 350.1 MB, free: 12.21 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.000348/0.1567, allocations: 169.8 kB / 350.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.728e-05/0.1568, allocations: 51.31 kB / 350.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001147/0.1569, allocations: 52.36 kB / 350.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.523e-06/0.1569, allocations: 8 kB / 350.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.157, allocations: 7.938 kB / 350.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.157, allocations: 4 kB / 350.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000748/0.1577, allocations: 0.5834 MB / 351 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.1577, allocations: 3.938 kB / 351 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005467/0.1583, allocations: 71.92 kB / 351.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0013/0.1596, allocations: 402.8 kB / 351.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.257e-05/0.1597, allocations: 7.984 kB / 351.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008699/0.1684, allocations: 3.668 MB / 355.1 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1684, allocations: 4 kB / 355.1 MB, free: 7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004652/0.1731, allocations: 1.255 MB / 356.4 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003393/0.1734, allocations: 168.5 kB / 356.6 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.32e-05/0.1735, allocations: 19.92 kB / 356.6 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005334/0.1741, allocations: 55.94 kB / 356.6 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001561/0.1742, allocations: 55.92 kB / 356.7 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.644e-05/0.1743, allocations: 8 kB / 356.7 MB, free: 5.402 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003345/0.1746, allocations: 275.2 kB / 357 MB, free: 5.137 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1746, allocations: 0 / 357 MB, free: 5.137 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007164/0.1753, allocations: 171.8 kB / 357.1 MB, free: 4.969 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002177/0.1756, allocations: 107.2 kB / 357.2 MB, free: 4.852 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002461/0.178, allocations: 0.8916 MB / 358.1 MB, free: 3.934 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.178, allocations: 0 / 358.1 MB, free: 3.934 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001511/0.1796, allocations: 0.5373 MB / 358.7 MB, free: 3.383 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004929/0.1801, allocations: 85.62 kB / 358.8 MB, free: 3.301 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003065/0.1831, allocations: 1.321 MB / 360.1 MB, free: 1.957 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004367/0.1836, allocations: 0.8317 MB / 360.9 MB, free: 1.102 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002203/0.1838, allocations: 47.25 kB / 361 MB, free: 1.055 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.435e-05/0.1839, allocations: 27.44 kB / 361 MB, free: 1.027 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1839, allocations: 0 / 361 MB, free: 1.027 MB / 302.1 MB Notification: Performance of Templates: time 0.01832/0.2023, allocations: 12.89 MB / 373.9 MB, free: 4.129 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)