Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001038/0.001038, allocations: 92.19 kB / 16.65 MB, free: 6.598 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.001316/0.001316, allocations: 177.8 kB / 17.56 MB, free: 6.203 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.68/1.68, allocations: 205.4 MB / 223.7 MB, free: 12.99 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.0004959/0.0004961, allocations: 12 kB / 280.7 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1323, allocations: 47.58 MB / 328.3 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003578/0.1359, allocations: 2.558 MB / 330.9 MB, free: 1.172 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001649/0.1376, allocations: 0.7449 MB / 331.6 MB, free: 428 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002266/0.1379, allocations: 4 kB / 331.6 MB, free: 424 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001782/0.138, allocations: 39.69 kB / 331.7 MB, free: 384 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000195/0.1382, allocations: 87.31 kB / 331.7 MB, free: 296 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003162/0.1386, allocations: 87.86 kB / 331.8 MB, free: 208 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000442/0.139, allocations: 386.3 kB / 332.2 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002542/0.1393, allocations: 115.9 kB / 332.3 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002102/0.1395, allocations: 123.4 kB / 332.4 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002146/0.1397, allocations: 135.3 kB / 332.6 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.118e-05/0.1398, allocations: 16 kB / 332.6 MB, free: 15.44 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.332e-05/0.1398, allocations: 16 kB / 332.6 MB, free: 15.42 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.015e-05/0.1399, allocations: 59.7 kB / 332.7 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001874/0.1401, allocations: 180.9 kB / 332.8 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004008/0.1405, allocations: 390.8 kB / 333.2 MB, free: 14.8 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1405, allocations: 0 / 333.2 MB, free: 14.8 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1405, allocations: 0 / 333.2 MB, free: 14.8 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.1406, allocations: 3.938 kB / 333.2 MB, free: 14.79 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001318/0.1419, allocations: 0.574 MB / 333.8 MB, free: 14.17 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.431e-05/0.1419, allocations: 12.03 kB / 333.8 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.1e-05/0.142, allocations: 32.56 kB / 333.8 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004434/0.1425, allocations: 291.5 kB / 334.1 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.607e-05/0.1425, allocations: 16.94 kB / 334.1 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.641e-05/0.1426, allocations: 28.38 kB / 334.2 MB, free: 13.76 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005377/0.1432, allocations: 292.9 kB / 334.5 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.1432, allocations: 0 / 334.5 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.613e-05/0.1432, allocations: 8 kB / 334.5 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.1432, allocations: 8 kB / 334.5 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004195/0.1437, allocations: 214.1 kB / 334.7 MB, free: 13.23 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001853/0.1455, allocations: 1.16 MB / 335.8 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005716/0.1461, allocations: 218.6 kB / 336.1 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003123/0.1465, allocations: 152.8 kB / 336.2 MB, free: 11.62 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.465e-05/0.1465, allocations: 4 kB / 336.2 MB, free: 11.62 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003513/0.1469, allocations: 166.6 kB / 336.4 MB, free: 11.43 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.523e-06/0.1469, allocations: 3.938 kB / 336.4 MB, free: 11.43 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.001497/0.1484, allocations: 0.5225 MB / 336.9 MB, free: 10.88 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.1485, allocations: 132.5 kB / 337 MB, free: 10.71 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002704/0.1488, allocations: 244.9 kB / 337.3 MB, free: 10.46 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.079e-05/0.1488, allocations: 33.7 kB / 337.3 MB, free: 10.43 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.149, allocations: 168.5 kB / 337.5 MB, free: 10.26 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.703e-05/0.1491, allocations: 75 kB / 337.5 MB, free: 10.18 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.814e-05/0.1491, allocations: 29.7 kB / 337.6 MB, free: 10.15 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002058/0.1493, allocations: 330.8 kB / 337.9 MB, free: 9.816 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.1495, allocations: 75.91 kB / 338 MB, free: 9.742 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002216/0.1498, allocations: 125.1 kB / 338.1 MB, free: 9.602 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003596/0.1501, allocations: 175.3 kB / 338.3 MB, free: 9.418 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.1501, allocations: 0 / 338.3 MB, free: 9.418 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005359/0.1507, allocations: 298.1 kB / 338.6 MB, free: 9.117 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.1507, allocations: 4 kB / 338.6 MB, free: 9.113 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.1507, allocations: 0 / 338.6 MB, free: 9.113 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003726/0.1511, allocations: 88.8 kB / 338.6 MB, free: 9.023 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.1513, allocations: 35.92 kB / 338.7 MB, free: 8.988 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002599/0.1539, allocations: 1.948 MB / 340.6 MB, free: 6.906 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002341/0.1541, allocations: 35.73 kB / 340.7 MB, free: 6.871 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.783e-05/0.1542, allocations: 8 kB / 340.7 MB, free: 6.863 MB / 286.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.0002146/0.1544, allocations: 157.8 kB / 340.8 MB, free: 6.699 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.184e-05/0.1544, allocations: 23.72 kB / 340.8 MB, free: 6.676 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.187e-05/0.1545, allocations: 26.19 kB / 340.9 MB, free: 6.648 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.1545, allocations: 7.938 kB / 340.9 MB, free: 6.641 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1545, allocations: 7.938 kB / 340.9 MB, free: 6.633 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.1545, allocations: 3.984 kB / 340.9 MB, free: 6.629 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009665/0.1555, allocations: 0.7732 MB / 341.7 MB, free: 5.793 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.1555, allocations: 0 / 341.7 MB, free: 5.793 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001144/0.1556, allocations: 27.92 kB / 341.7 MB, free: 5.766 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002698/0.1559, allocations: 92.84 kB / 341.8 MB, free: 5.672 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.054e-05/0.156, allocations: 0 / 341.8 MB, free: 5.672 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002184/0.1581, allocations: 1.948 MB / 343.7 MB, free: 3.594 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.1582, allocations: 0 / 343.7 MB, free: 3.594 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000717/0.1589, allocations: 456.7 kB / 344.2 MB, free: 3.125 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.159, allocations: 125 kB / 344.3 MB, free: 2.984 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.42e-05/0.1591, allocations: 4 kB / 344.3 MB, free: 2.98 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/0.1593, allocations: 31.91 kB / 344.3 MB, free: 2.949 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.1594, allocations: 31.94 kB / 344.4 MB, free: 2.918 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.533e-05/0.1594, allocations: 8 kB / 344.4 MB, free: 2.91 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002085/0.1596, allocations: 176.5 kB / 344.5 MB, free: 2.738 MB / 286.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1596, allocations: 0 / 344.5 MB, free: 2.738 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006454/0.1603, allocations: 95.89 kB / 344.6 MB, free: 2.645 MB / 286.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.0001834/0.1605, allocations: 107.2 kB / 344.7 MB, free: 2.527 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007968/0.1613, allocations: 358.5 kB / 345.1 MB, free: 2.164 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.1613, allocations: 3.938 kB / 345.1 MB, free: 2.16 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004273/0.1617, allocations: 262.5 kB / 345.4 MB, free: 1.891 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004713/0.1622, allocations: 48.53 kB / 345.4 MB, free: 1.844 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001227/0.1635, allocations: 0.7386 MB / 346.1 MB, free: 1.082 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003839/0.1639, allocations: 0.7674 MB / 346.9 MB, free: 296 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001082/0.164, allocations: 30.22 kB / 346.9 MB, free: 264 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.801e-05/0.164, allocations: 23.38 kB / 347 MB, free: 240 kB / 286.1 MB Notification: Performance of SimCode: time 6.11e-07/0.164, allocations: 0 / 347 MB, free: 240 kB / 286.1 MB Notification: Performance of Templates: time 0.008982/0.173, allocations: 4.396 MB / 351.4 MB, free: 11.85 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1)