Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.008421/0.008421, allocations: 105.9 kB / 15.73 MB, free: 6.047 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.001863/0.001864, allocations: 196.6 kB / 16.67 MB, free: 5.961 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.565/1.565, allocations: 205.1 MB / 222.6 MB, free: 4.535 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.002357/0.002357, allocations: 58.02 kB / 326.6 MB, free: 14.37 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1409/0.1433, allocations: 46.62 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.007741/0.1511, allocations: 3.887 MB / 377.1 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002548/0.1537, allocations: 1.029 MB / 378.1 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003696/0.1541, allocations: 11.94 kB / 378.1 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003052/0.1545, allocations: 79.22 kB / 378.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004379/0.155, allocations: 174.5 kB / 378.4 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000734/0.1557, allocations: 211.6 kB / 378.6 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001004/0.1567, allocations: 0.7588 MB / 379.3 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004505/0.1572, allocations: 172.9 kB / 379.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004547/0.1577, allocations: 291 kB / 379.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004336/0.1581, allocations: 338.6 kB / 380.1 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001091/0.1582, allocations: 76 kB / 380.2 MB, free: 10.26 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.1584, allocations: 84 kB / 380.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001559/0.1585, allocations: 147.5 kB / 380.4 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003237/0.1589, allocations: 318.5 kB / 380.7 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008173/0.1597, allocations: 0.8021 MB / 381.5 MB, free: 8.914 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.1597, allocations: 0 / 381.5 MB, free: 8.914 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.1597, allocations: 0 / 381.5 MB, free: 8.914 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.1597, allocations: 0 / 381.5 MB, free: 8.914 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002655/0.1624, allocations: 0.9835 MB / 382.5 MB, free: 7.875 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.1624, allocations: 8.031 kB / 382.5 MB, free: 7.867 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001415/0.1626, allocations: 60.28 kB / 382.6 MB, free: 7.809 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007742/0.1634, allocations: 402 kB / 383 MB, free: 7.375 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.124e-05/0.1634, allocations: 29.38 kB / 383 MB, free: 7.348 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.072e-05/0.1635, allocations: 40.12 kB / 383 MB, free: 7.309 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001411/0.165, allocations: 0.5591 MB / 383.6 MB, free: 6.727 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.165, allocations: 0 / 383.6 MB, free: 6.727 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.128e-05/0.165, allocations: 16 kB / 383.6 MB, free: 6.711 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.1651, allocations: 8 kB / 383.6 MB, free: 6.703 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001735/0.1668, allocations: 0.5738 MB / 384.2 MB, free: 6.129 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003614/0.1704, allocations: 2.004 MB / 386.2 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003842/0.1743, allocations: 0.7915 MB / 387 MB, free: 3.23 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009347/0.1752, allocations: 360.7 kB / 387.3 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.377e-05/0.1753, allocations: 7.984 kB / 387.3 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001138/0.1764, allocations: 399.6 kB / 387.7 MB, free: 2.461 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.605e-06/0.1765, allocations: 4 kB / 387.7 MB, free: 2.457 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.009452/0.1859, allocations: 1.783 MB / 389.5 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.668e-05/0.186, allocations: 93.09 kB / 389.6 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005158/0.1866, allocations: 385.6 kB / 390 MB, free: 156 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.145e-05/0.1866, allocations: 29.7 kB / 390 MB, free: 120 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002051/0.1868, allocations: 228.6 kB / 390.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001335/0.187, allocations: 130.1 kB / 390.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001684/0.1872, allocations: 70.06 kB / 390.4 MB, free: 15.68 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.1873, allocations: 354.8 kB / 390.8 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008404/0.1882, allocations: 268.6 kB / 391 MB, free: 15.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000876/0.1891, allocations: 313.9 kB / 391.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001703/0.1908, allocations: 0.5368 MB / 391.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.1908, allocations: 4 kB / 391.9 MB, free: 14.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004624/0.1954, allocations: 1.064 MB / 393 MB, free: 13.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.696e-05/0.1955, allocations: 29.7 kB / 393 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.1955, allocations: 0 / 393 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001333/0.1968, allocations: 400.5 kB / 393.4 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004576/0.1973, allocations: 83.81 kB / 393.5 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008857/0.2062, allocations: 3.665 MB / 397.1 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007718/0.207, allocations: 83.62 kB / 397.2 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.663e-05/0.2071, allocations: 23.92 kB / 397.2 MB, free: 8.688 MB / 334.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.0004464/0.2075, allocations: 169.8 kB / 397.4 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.2076, allocations: 43.47 kB / 397.4 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001331/0.2078, allocations: 52.36 kB / 397.5 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.79e-06/0.2078, allocations: 4 kB / 397.5 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.2078, allocations: 4 kB / 397.5 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.2078, allocations: 0 / 397.5 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007731/0.2086, allocations: 0.5949 MB / 398.1 MB, free: 7.762 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.2086, allocations: 3.938 kB / 398.1 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004293/0.209, allocations: 75.86 kB / 398.2 MB, free: 7.684 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001107/0.2102, allocations: 392.9 kB / 398.5 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.113e-05/0.2102, allocations: 7.984 kB / 398.6 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008583/0.2188, allocations: 3.665 MB / 402.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.2189, allocations: 0 / 402.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004793/0.2237, allocations: 1.255 MB / 403.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000363/0.2241, allocations: 172.6 kB / 403.6 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001149/0.2242, allocations: 19.92 kB / 403.7 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000595/0.2248, allocations: 55.94 kB / 403.7 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/0.225, allocations: 59.8 kB / 403.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.057e-05/0.225, allocations: 16 kB / 403.8 MB, free: 1.871 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004325/0.2255, allocations: 271.2 kB / 404.1 MB, free: 1.605 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2255, allocations: 0 / 404.1 MB, free: 1.605 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007964/0.2263, allocations: 171.8 kB / 404.2 MB, free: 1.438 MB / 334.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.0002867/0.2266, allocations: 107.2 kB / 404.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002966/0.2296, allocations: 0.8876 MB / 405.2 MB, free: 420 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.2296, allocations: 0 / 405.2 MB, free: 420 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001588/0.2312, allocations: 0.5295 MB / 405.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000635/0.2318, allocations: 89.62 kB / 405.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003935/0.2358, allocations: 1.16 MB / 407 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006891/0.2365, allocations: 0.8317 MB / 407.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002846/0.2368, allocations: 39.28 kB / 407.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.2369, allocations: 35.42 kB / 407.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of SimCode: time 8.01e-07/0.2369, allocations: 0 / 407.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of Templates: time 0.02537/0.2623, allocations: 13.25 MB / 421.2 MB, free: 392 kB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)