Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005896/0.005896, allocations: 95.61 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.001198/0.001198, allocations: 197.7 kB / 16.67 MB, free: 5.973 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.597/1.597, allocations: 205.1 MB / 222.6 MB, free: 4.539 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.001167/0.001167, allocations: 52.55 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1394, allocations: 46.62 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004434/0.1439, allocations: 2.875 MB / 376.1 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001406/0.1453, allocations: 0.768 MB / 376.8 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000155/0.1455, allocations: 7.938 kB / 376.8 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001913/0.1457, allocations: 47.52 kB / 376.9 MB, free: 13.6 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000196/0.1459, allocations: 103.1 kB / 377 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003289/0.1463, allocations: 103.8 kB / 377.1 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004476/0.1467, allocations: 414.1 kB / 377.5 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002812/0.147, allocations: 131.2 kB / 377.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002105/0.1472, allocations: 155.4 kB / 377.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002418/0.1475, allocations: 167.2 kB / 377.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.688e-05/0.1475, allocations: 36 kB / 378 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.867e-05/0.1476, allocations: 36 kB / 378 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.087e-05/0.1477, allocations: 79.75 kB / 378.1 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001833/0.1479, allocations: 175.2 kB / 378.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005235/0.1484, allocations: 438.3 kB / 378.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1484, allocations: 0 / 378.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1484, allocations: 0 / 378.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.1484, allocations: 0 / 378.7 MB, free: 11.79 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.00117/0.1496, allocations: 0.6243 MB / 379.3 MB, free: 11.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.1497, allocations: 12.02 kB / 379.3 MB, free: 11.11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.886e-05/0.1498, allocations: 40.64 kB / 379.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004294/0.1502, allocations: 283.8 kB / 379.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.928e-05/0.1502, allocations: 24.88 kB / 379.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.293e-05/0.1503, allocations: 24.38 kB / 379.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004885/0.1508, allocations: 288.9 kB / 380 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.1508, allocations: 0 / 380 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.906e-05/0.1508, allocations: 12 kB / 380 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.1508, allocations: 4 kB / 380 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003833/0.1512, allocations: 210.1 kB / 380.2 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001748/0.153, allocations: 1.145 MB / 381.3 MB, free: 8.961 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005218/0.1535, allocations: 222.6 kB / 381.5 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003125/0.1539, allocations: 136.8 kB / 381.7 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.1539, allocations: 4 kB / 381.7 MB, free: 8.594 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002822/0.1542, allocations: 174.6 kB / 381.8 MB, free: 8.398 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.353e-06/0.1542, allocations: 0 / 381.8 MB, free: 8.398 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001424/0.1556, allocations: 0.5225 MB / 382.4 MB, free: 7.848 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.151e-05/0.1557, allocations: 132.5 kB / 382.5 MB, free: 7.688 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002599/0.156, allocations: 248.9 kB / 382.7 MB, free: 7.434 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.111e-05/0.156, allocations: 29.7 kB / 382.8 MB, free: 7.398 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.1561, allocations: 168.7 kB / 382.9 MB, free: 7.23 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.436e-05/0.1562, allocations: 71.42 kB / 383 MB, free: 7.16 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.275e-05/0.1563, allocations: 49.66 kB / 383.1 MB, free: 7.105 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1565, allocations: 338.8 kB / 383.4 MB, free: 6.766 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001506/0.1566, allocations: 71.97 kB / 383.5 MB, free: 6.695 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001817/0.1568, allocations: 121.1 kB / 383.6 MB, free: 6.559 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002958/0.1571, allocations: 175.3 kB / 383.7 MB, free: 6.375 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1571, allocations: 0 / 383.7 MB, free: 6.375 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005087/0.1576, allocations: 298.1 kB / 384 MB, free: 6.074 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.1577, allocations: 4 kB / 384 MB, free: 6.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.1577, allocations: 0 / 384 MB, free: 6.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003712/0.158, allocations: 92.89 kB / 384.1 MB, free: 5.977 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.1582, allocations: 27.98 kB / 384.2 MB, free: 5.949 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002555/0.1608, allocations: 2.139 MB / 386.3 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002166/0.161, allocations: 31.89 kB / 386.3 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.389e-05/0.161, allocations: 16 kB / 386.3 MB, free: 3.625 MB / 318.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: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.000212/0.1612, allocations: 153.8 kB / 386.5 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.893e-05/0.1613, allocations: 31.78 kB / 386.5 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.056e-05/0.1614, allocations: 30.17 kB / 386.5 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.1614, allocations: 7.938 kB / 386.6 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.115e-06/0.1614, allocations: 0 / 386.6 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.1614, allocations: 3.938 kB / 386.6 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00106/0.1625, allocations: 0.7735 MB / 387.3 MB, free: 2.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1625, allocations: 0 / 387.3 MB, free: 2.559 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001086/0.1626, allocations: 20 kB / 387.4 MB, free: 2.539 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002639/0.1629, allocations: 92.84 kB / 387.4 MB, free: 2.445 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.036e-05/0.1629, allocations: 4 kB / 387.4 MB, free: 2.441 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002448/0.1654, allocations: 2.143 MB / 389.6 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1654, allocations: 0 / 389.6 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006699/0.1661, allocations: 457.6 kB / 390 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001226/0.1662, allocations: 129 kB / 390.2 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.651e-05/0.1662, allocations: 8 kB / 390.2 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001862/0.1664, allocations: 15.98 kB / 390.2 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/0.1666, allocations: 35.95 kB / 390.2 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.1666, allocations: 7.984 kB / 390.2 MB, free: 15.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001765/0.1668, allocations: 168.5 kB / 390.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1668, allocations: 0 / 390.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004781/0.1673, allocations: 99.83 kB / 390.5 MB, free: 15.21 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001795/0.1674, allocations: 111.2 kB / 390.6 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007991/0.1683, allocations: 362.6 kB / 391 MB, free: 14.73 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.1683, allocations: 3.938 kB / 391 MB, free: 14.72 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003885/0.1687, allocations: 270.7 kB / 391.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004204/0.1691, allocations: 60.5 kB / 391.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.1703, allocations: 0.5861 MB / 391.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000381/0.1707, allocations: 0.7636 MB / 392.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.718e-05/0.1708, allocations: 22.23 kB / 392.7 MB, free: 12.96 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.006e-05/0.1709, allocations: 23.42 kB / 392.7 MB, free: 12.94 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1709, allocations: 0 / 392.7 MB, free: 12.94 MB / 334.1 MB Notification: Performance of Templates: time 0.01063/0.1815, allocations: 4.92 MB / 397.6 MB, free: 8.008 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1)