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.0009332/0.0009332, allocations: 91.36 kB / 16.65 MB, free: 6.535 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.001182/0.001182, allocations: 178.5 kB / 17.56 MB, free: 6.18 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.713/1.713, allocations: 205.4 MB / 223.7 MB, free: 13.06 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.0007602/0.0007603, allocations: 8 kB / 280.7 MB, free: 3.414 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1323, allocations: 47.58 MB / 328.3 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004313/0.1366, allocations: 3.539 MB / 331.9 MB, free: 196 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002398/0.1391, allocations: 1.002 MB / 332.9 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000282/0.1394, allocations: 7.938 kB / 332.9 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002413/0.1396, allocations: 67.45 kB / 332.9 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004066/0.14, allocations: 142.9 kB / 333.1 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006153/0.1407, allocations: 183.8 kB / 333.3 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008166/0.1415, allocations: 0.7004 MB / 334 MB, free: 14.09 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003369/0.1419, allocations: 149.5 kB / 334.1 MB, free: 13.94 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003803/0.1422, allocations: 251 kB / 334.3 MB, free: 13.7 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003889/0.1426, allocations: 290.7 kB / 334.6 MB, free: 13.41 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.617e-05/0.1427, allocations: 32 kB / 334.7 MB, free: 13.38 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.769e-05/0.1428, allocations: 32 kB / 334.7 MB, free: 13.35 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.1429, allocations: 107.5 kB / 334.8 MB, free: 13.24 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002837/0.1432, allocations: 288.2 kB / 335.1 MB, free: 12.95 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007042/0.1439, allocations: 0.7395 MB / 335.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.1439, allocations: 4 kB / 335.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.144, allocations: 0 / 335.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.144, allocations: 0 / 335.8 MB, free: 12.21 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.002661/0.1466, allocations: 0.941 MB / 336.8 MB, free: 11.21 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.064e-05/0.1467, allocations: 12.03 kB / 336.8 MB, free: 11.2 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001391/0.1469, allocations: 64.28 kB / 336.8 MB, free: 11.13 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005265/0.1474, allocations: 390.1 kB / 337.2 MB, free: 10.71 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.577e-05/0.1475, allocations: 29.38 kB / 337.2 MB, free: 10.68 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.469e-05/0.1476, allocations: 40.12 kB / 337.3 MB, free: 10.64 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.149, allocations: 0.5981 MB / 337.9 MB, free: 10.03 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.149, allocations: 0 / 337.9 MB, free: 10.03 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.419e-05/0.1491, allocations: 19.98 kB / 337.9 MB, free: 10.01 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.925e-05/0.1491, allocations: 11.98 kB / 337.9 MB, free: 9.996 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001839/0.151, allocations: 0.6441 MB / 338.6 MB, free: 9.352 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004082/0.1551, allocations: 2.059 MB / 340.6 MB, free: 7.195 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003924/0.159, allocations: 0.9322 MB / 341.6 MB, free: 6.254 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001195/0.1603, allocations: 401.3 kB / 341.9 MB, free: 5.859 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.508e-05/0.1604, allocations: 8 kB / 341.9 MB, free: 5.852 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001356/0.1617, allocations: 439.4 kB / 342.4 MB, free: 5.406 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 3.878e-06/0.1618, allocations: 0 / 342.4 MB, free: 5.406 MB / 286.1 MB Notification: Performance of matching and sorting (n=39): time 0.01105/0.1728, allocations: 2.052 MB / 344.4 MB, free: 3.324 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/0.173, allocations: 85.11 kB / 344.5 MB, free: 3.223 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008336/0.1738, allocations: 381.7 kB / 344.9 MB, free: 2.836 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001209/0.174, allocations: 33.7 kB / 344.9 MB, free: 2.797 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000284/0.1743, allocations: 224.5 kB / 345.1 MB, free: 2.57 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001701/0.1745, allocations: 130.2 kB / 345.3 MB, free: 2.441 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.627e-05/0.1746, allocations: 37.7 kB / 345.3 MB, free: 2.398 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002585/0.1748, allocations: 354.8 kB / 345.6 MB, free: 2.043 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001364/0.1762, allocations: 304.6 kB / 345.9 MB, free: 1.742 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001618/0.1779, allocations: 349.9 kB / 346.3 MB, free: 1.391 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002762/0.1806, allocations: 0.6188 MB / 346.9 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/0.1807, allocations: 3.938 kB / 346.9 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.007447/0.1881, allocations: 1.209 MB / 348.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001191/0.1883, allocations: 37.7 kB / 348.2 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.379e-05/0.1884, allocations: 3.984 kB / 348.2 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002049/0.1904, allocations: 416.5 kB / 348.6 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007642/0.1912, allocations: 95.86 kB / 348.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01251/0.2037, allocations: 3.497 MB / 352.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001093/0.2049, allocations: 107.7 kB / 352.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.57e-05/0.205, allocations: 8 kB / 352.3 MB, free: 11.24 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.0005767/0.2056, allocations: 181.8 kB / 352.4 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001903/0.2058, allocations: 39.53 kB / 352.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002253/0.206, allocations: 56.41 kB / 352.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-05/0.206, allocations: 7.984 kB / 352.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/0.2061, allocations: 0 / 352.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/0.2061, allocations: 3.984 kB / 352.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001373/0.2075, allocations: 0.5794 MB / 353.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/0.2075, allocations: 0 / 353.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006329/0.2082, allocations: 91.88 kB / 353.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001856/0.21, allocations: 424.5 kB / 353.6 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.33e-05/0.2101, allocations: 11.94 kB / 353.6 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01251/0.2226, allocations: 3.484 MB / 357.1 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.2227, allocations: 3.938 kB / 357.1 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00705/0.2298, allocations: 1.408 MB / 358.5 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005589/0.2304, allocations: 180.5 kB / 358.7 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.2305, allocations: 8 kB / 358.7 MB, free: 4.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007728/0.2313, allocations: 83.92 kB / 358.8 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002443/0.2316, allocations: 51.88 kB / 358.9 MB, free: 4.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.318e-05/0.2316, allocations: 11.98 kB / 358.9 MB, free: 4.398 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005275/0.2322, allocations: 275.2 kB / 359.1 MB, free: 4.133 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2322, allocations: 0 / 359.1 MB, free: 4.133 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001065/0.2333, allocations: 175.6 kB / 359.3 MB, free: 3.961 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.0002849/0.2336, allocations: 103.2 kB / 359.4 MB, free: 3.848 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.004068/0.2376, allocations: 0.9503 MB / 360.4 MB, free: 2.871 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/0.2377, allocations: 3.938 kB / 360.4 MB, free: 2.867 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002352/0.24, allocations: 0.5648 MB / 360.9 MB, free: 2.289 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001282/0.2413, allocations: 85.41 kB / 361 MB, free: 2.207 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004921/0.2463, allocations: 1.414 MB / 362.4 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00061/0.2469, allocations: 0.8353 MB / 363.3 MB, free: 15.91 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002897/0.2472, allocations: 47.25 kB / 363.3 MB, free: 15.86 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.2473, allocations: 23.44 kB / 363.3 MB, free: 15.84 MB / 318.1 MB Notification: Performance of SimCode: time 1.312e-06/0.2473, allocations: 0 / 363.3 MB, free: 15.84 MB / 318.1 MB Notification: Performance of Templates: time 0.0253/0.2727, allocations: 12.17 MB / 375.5 MB, free: 3.668 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)