Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.3_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.001204/0.001204, allocations: 108.4 kB / 18.34 MB, free: 4.676 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.001108/0.001109, allocations: 186.9 kB / 19.28 MB, free: 3.75 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.587/1.587, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001381/0.001381, allocations: 55.91 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1027, allocations: 46.63 MB / 328.7 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005208/0.108, allocations: 3.898 MB / 332.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002256/0.1103, allocations: 1.025 MB / 333.6 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000263/0.1106, allocations: 4 kB / 333.6 MB, free: 14.78 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002745/0.1109, allocations: 87.2 kB / 333.7 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003212/0.1112, allocations: 170.5 kB / 333.9 MB, free: 14.53 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005252/0.1118, allocations: 207.6 kB / 334.1 MB, free: 14.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008015/0.1126, allocations: 0.7628 MB / 334.9 MB, free: 13.56 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002928/0.1129, allocations: 172.9 kB / 335 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003802/0.1133, allocations: 291 kB / 335.3 MB, free: 13.11 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003785/0.1137, allocations: 334.7 kB / 335.6 MB, free: 12.78 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.807e-05/0.1138, allocations: 76 kB / 335.7 MB, free: 12.7 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000107/0.1139, allocations: 76 kB / 335.8 MB, free: 12.63 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001358/0.114, allocations: 147.5 kB / 335.9 MB, free: 12.48 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003213/0.1144, allocations: 318.6 kB / 336.2 MB, free: 12.17 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007757/0.1151, allocations: 0.8022 MB / 337 MB, free: 11.37 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.1152, allocations: 0 / 337 MB, free: 11.37 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1152, allocations: 0 / 337 MB, free: 11.37 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.1152, allocations: 0 / 337 MB, free: 11.37 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.002497/0.1177, allocations: 0.9719 MB / 338 MB, free: 10.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.1177, allocations: 12.03 kB / 338 MB, free: 10.33 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.1179, allocations: 56.28 kB / 338.1 MB, free: 10.27 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006059/0.1185, allocations: 402 kB / 338.5 MB, free: 9.84 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.244e-05/0.1185, allocations: 29.38 kB / 338.5 MB, free: 9.812 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.151e-05/0.1186, allocations: 44.11 kB / 338.5 MB, free: 9.77 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001265/0.1199, allocations: 0.5552 MB / 339.1 MB, free: 9.188 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.1199, allocations: 4 kB / 339.1 MB, free: 9.184 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.87e-05/0.12, allocations: 16 kB / 339.1 MB, free: 9.168 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.918e-06/0.12, allocations: 8 kB / 339.1 MB, free: 9.16 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001628/0.1216, allocations: 0.5738 MB / 339.7 MB, free: 8.59 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003435/0.125, allocations: 2.016 MB / 341.7 MB, free: 6.473 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003654/0.1287, allocations: 0.7876 MB / 342.5 MB, free: 5.676 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009269/0.1297, allocations: 369.3 kB / 342.9 MB, free: 5.312 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.508e-05/0.1297, allocations: 4 kB / 342.9 MB, free: 5.309 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001047/0.1308, allocations: 407.3 kB / 343.3 MB, free: 4.895 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 3.036e-06/0.1308, allocations: 0 / 343.3 MB, free: 4.895 MB / 286.1 MB Notification: Performance of matching and sorting (n=39): time 0.009854/0.1407, allocations: 1.791 MB / 345.1 MB, free: 3.074 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.411e-05/0.1408, allocations: 85.05 kB / 345.1 MB, free: 2.973 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005912/0.1414, allocations: 389.7 kB / 345.5 MB, free: 2.586 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.147e-05/0.1414, allocations: 33.7 kB / 345.6 MB, free: 2.547 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002/0.1417, allocations: 216.6 kB / 345.8 MB, free: 2.328 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001586/0.1418, allocations: 134.1 kB / 345.9 MB, free: 2.195 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002055/0.142, allocations: 70.06 kB / 346 MB, free: 2.117 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.1422, allocations: 354.8 kB / 346.3 MB, free: 1.762 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008362/0.1431, allocations: 264.6 kB / 346.6 MB, free: 1.504 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008645/0.144, allocations: 321.8 kB / 346.9 MB, free: 1.18 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001593/0.1456, allocations: 0.5368 MB / 347.4 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.1456, allocations: 0 / 347.4 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004764/0.1503, allocations: 1.056 MB / 348.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.423e-05/0.1504, allocations: 37.69 kB / 348.5 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/0.1505, allocations: 4 kB / 348.5 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001343/0.1518, allocations: 388.5 kB / 348.9 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004525/0.1523, allocations: 83.86 kB / 349 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008783/0.1611, allocations: 3.677 MB / 352.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007029/0.1618, allocations: 79.66 kB / 352.7 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.83e-05/0.1619, allocations: 15.98 kB / 352.8 MB, free: 11.14 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.0002839/0.1622, allocations: 169.8 kB / 352.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.662e-05/0.1623, allocations: 47.38 kB / 353 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001112/0.1624, allocations: 52.38 kB / 353 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.1624, allocations: 4 kB / 353 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.1624, allocations: 0 / 353 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.1624, allocations: 3.984 kB / 353 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006686/0.1631, allocations: 0.5834 MB / 353.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.788e-06/0.1631, allocations: 7.938 kB / 353.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004245/0.1635, allocations: 71.88 kB / 353.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00112/0.1647, allocations: 400.5 kB / 354.1 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.256e-05/0.1647, allocations: 11.94 kB / 354.1 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008356/0.1731, allocations: 3.673 MB / 357.8 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.1731, allocations: 0 / 357.8 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004593/0.1777, allocations: 1.259 MB / 359 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000313/0.1781, allocations: 176.4 kB / 359.2 MB, free: 4.453 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.919e-05/0.1782, allocations: 7.938 kB / 359.2 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005426/0.1787, allocations: 63.92 kB / 359.3 MB, free: 4.383 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001723/0.1789, allocations: 47.94 kB / 359.3 MB, free: 4.336 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-05/0.1789, allocations: 15.98 kB / 359.3 MB, free: 4.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000338/0.1793, allocations: 267.2 kB / 359.6 MB, free: 4.059 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1793, allocations: 4 kB / 359.6 MB, free: 4.055 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006517/0.1799, allocations: 175.8 kB / 359.8 MB, free: 3.883 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.0001903/0.1801, allocations: 110.3 kB / 359.9 MB, free: 3.766 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00264/0.1828, allocations: 0.8799 MB / 360.8 MB, free: 2.859 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1828, allocations: 0 / 360.8 MB, free: 2.859 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001425/0.1842, allocations: 0.5334 MB / 361.3 MB, free: 2.312 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004936/0.1848, allocations: 85.39 kB / 361.4 MB, free: 2.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003064/0.1878, allocations: 1.153 MB / 362.5 MB, free: 1.051 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004644/0.1883, allocations: 0.8278 MB / 363.3 MB, free: 204 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002045/0.1885, allocations: 39.28 kB / 363.4 MB, free: 164 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.1886, allocations: 35.38 kB / 363.4 MB, free: 128 kB / 302.1 MB Notification: Performance of SimCode: time 8.21e-07/0.1886, allocations: 0 / 363.4 MB, free: 128 kB / 302.1 MB Notification: Performance of Templates: time 0.02113/0.2098, allocations: 13.15 MB / 376.6 MB, free: 2.969 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)