Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.001366/0.001366, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001436/0.001436, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.907/1.907, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004787/0.0004787, allocations: 16 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3304/0.3309, allocations: 47.58 MB / 326.4 MB, free: 1.613 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003511/0.3345, allocations: 2.318 MB / 328.8 MB, free: 15.8 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001994/0.3365, allocations: 0.7647 MB / 329.5 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002422/0.3368, allocations: 4.688 kB / 329.5 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 8.773e-05/0.3369, allocations: 31.59 kB / 329.6 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003825/0.3373, allocations: 117.5 kB / 329.7 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003824/0.3377, allocations: 74.38 kB / 329.7 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000499/0.3382, allocations: 266.5 kB / 330 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003112/0.3385, allocations: 95.19 kB / 330.1 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002427/0.3388, allocations: 122.2 kB / 330.2 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002834/0.3391, allocations: 135.7 kB / 330.4 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.885e-05/0.3392, allocations: 15.97 kB / 330.4 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.527e-05/0.3392, allocations: 15.03 kB / 330.4 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.368e-05/0.3393, allocations: 44.7 kB / 330.4 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001288/0.3394, allocations: 90.47 kB / 330.5 MB, free: 14.51 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004213/0.3399, allocations: 313.5 kB / 330.8 MB, free: 14.28 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3399, allocations: 0 / 330.8 MB, free: 14.28 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.3399, allocations: 1.406 kB / 330.8 MB, free: 14.28 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.3399, allocations: 0 / 330.8 MB, free: 14.28 MB / 270.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.001414/0.3413, allocations: 0.5787 MB / 331.4 MB, free: 13.76 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.222e-05/0.3414, allocations: 13.72 kB / 331.4 MB, free: 13.75 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001291/0.3416, allocations: 33.56 kB / 331.4 MB, free: 13.74 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004589/0.342, allocations: 268.5 kB / 331.7 MB, free: 13.46 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.177e-05/0.3421, allocations: 23.3 kB / 331.7 MB, free: 13.45 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.955e-05/0.3422, allocations: 27.81 kB / 331.8 MB, free: 13.44 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006482/0.3428, allocations: 281.7 kB / 332 MB, free: 13.25 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.3428, allocations: 0.875 kB / 332 MB, free: 13.25 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.527e-05/0.3429, allocations: 14.72 kB / 332 MB, free: 13.24 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.599e-05/0.3429, allocations: 9.734 kB / 332.1 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004733/0.3434, allocations: 209 kB / 332.3 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002046/0.3454, allocations: 1.169 MB / 333.4 MB, free: 12.14 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000543/0.346, allocations: 220.4 kB / 333.6 MB, free: 12.01 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.346, allocations: 2.062 kB / 333.7 MB, free: 12.01 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004546/0.3465, allocations: 166.8 kB / 333.8 MB, free: 11.88 MB / 270.1 MB Notification: Performance of pre-optimization done (n=22): time 1.633e-06/0.3465, allocations: 4 kB / 333.8 MB, free: 11.87 MB / 270.1 MB Notification: Performance of matching and sorting (n=22): time 0.001593/0.3481, allocations: 0.513 MB / 334.3 MB, free: 11.52 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001292/0.3483, allocations: 110.8 kB / 334.4 MB, free: 11.38 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003376/0.3486, allocations: 241 kB / 334.7 MB, free: 11.14 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.278e-05/0.3487, allocations: 33.7 kB / 334.7 MB, free: 11.1 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001822/0.3489, allocations: 160.5 kB / 334.9 MB, free: 10.94 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.083e-05/0.3489, allocations: 75 kB / 334.9 MB, free: 10.86 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.3491, allocations: 4 kB / 334.9 MB, free: 10.86 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002212/0.3493, allocations: 330.8 kB / 335.3 MB, free: 10.53 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001697/0.3495, allocations: 75.97 kB / 335.3 MB, free: 10.45 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002461/0.3497, allocations: 128.4 kB / 335.5 MB, free: 10.31 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001758/0.3499, allocations: 81.86 kB / 335.5 MB, free: 10.23 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.3499, allocations: 0 / 335.5 MB, free: 10.23 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005682/0.3505, allocations: 300.1 kB / 335.8 MB, free: 9.934 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.3505, allocations: 8 kB / 335.8 MB, free: 9.926 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.3506, allocations: 3.938 kB / 335.8 MB, free: 9.922 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004449/0.351, allocations: 92.73 kB / 335.9 MB, free: 9.828 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001558/0.3512, allocations: 31.92 kB / 336 MB, free: 9.797 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002571/0.3538, allocations: 1.959 MB / 337.9 MB, free: 7.703 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002602/0.354, allocations: 39.8 kB / 338 MB, free: 7.664 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.872e-05/0.3541, allocations: 12 kB / 338 MB, free: 7.652 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002362/0.3543, allocations: 145.8 kB / 338.1 MB, free: 7.5 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.376e-05/0.3544, allocations: 27.73 kB / 338.1 MB, free: 7.473 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.322e-05/0.3544, allocations: 34.17 kB / 338.2 MB, free: 7.438 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.3544, allocations: 4 kB / 338.2 MB, free: 7.434 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.3545, allocations: 0 / 338.2 MB, free: 7.434 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.3545, allocations: 3.984 kB / 338.2 MB, free: 7.43 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005043/0.355, allocations: 349.4 kB / 338.5 MB, free: 7.039 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.355, allocations: 0 / 338.5 MB, free: 7.039 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001282/0.3551, allocations: 20.09 kB / 338.6 MB, free: 7.02 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002529/0.3554, allocations: 100.7 kB / 338.6 MB, free: 6.918 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/0.3554, allocations: 8 kB / 338.7 MB, free: 6.91 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002314/0.3577, allocations: 1.952 MB / 340.6 MB, free: 4.828 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3578, allocations: 0 / 340.6 MB, free: 4.828 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000815/0.3586, allocations: 418.2 kB / 341 MB, free: 4.398 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001513/0.3587, allocations: 120.9 kB / 341.1 MB, free: 4.262 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.967e-05/0.3588, allocations: 11.94 kB / 341.1 MB, free: 4.25 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001774/0.359, allocations: 24 kB / 341.2 MB, free: 4.227 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.3591, allocations: 39.94 kB / 341.2 MB, free: 4.188 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.3591, allocations: 8 kB / 341.2 MB, free: 4.18 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002553/0.3594, allocations: 172.5 kB / 341.4 MB, free: 4.012 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3594, allocations: 3.938 kB / 341.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004501/0.3599, allocations: 87.84 kB / 341.5 MB, free: 3.922 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.idealThyristor.off,idealTriac.idealThyristor1.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001699/0.36, allocations: 103.6 kB / 341.6 MB, free: 3.809 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0007178/0.3608, allocations: 362.4 kB / 341.9 MB, free: 3.441 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3608, allocations: 0 / 341.9 MB, free: 3.441 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004178/0.3612, allocations: 266.6 kB / 342.2 MB, free: 3.168 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003407/0.3616, allocations: 56.66 kB / 342.2 MB, free: 3.113 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/0.363, allocations: 0.727 MB / 343 MB, free: 2.363 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000485/0.3635, allocations: 0.7752 MB / 343.7 MB, free: 1.562 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001063/0.3636, allocations: 22.28 kB / 343.8 MB, free: 1.543 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.989e-05/0.3637, allocations: 19.44 kB / 343.8 MB, free: 1.523 MB / 270.1 MB Notification: Performance of SimCode: time 1.001e-06/0.3637, allocations: 0 / 343.8 MB, free: 1.523 MB / 270.1 MB Notification: Performance of Templates: time 0.009698/0.3734, allocations: 4.297 MB / 348.1 MB, free: 13.23 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) Environment - environmentSimulation: