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/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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/Complex 3.2.1+maint.om/package.mo): time 0.002087/0.002088, allocations: 165.8 kB / 7.635 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.345/1.345, allocations: 170.6 MB / 178.7 MB, free: 15.59 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001658/0.001658, allocations: 115.4 kB / 218 MB, free: 8.363 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.322e-05/1.34e-05, allocations: 4 kB / 262.2 MB, free: 26.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07181/0.07184, allocations: 38.77 MB / 301 MB, free: 3.652 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2611/0.333, allocations: 68.07 MB / 369 MB, free: 296 kB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002102/0.3332, allocations: 65.59 kB / 369.1 MB, free: 264 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01272/0.346, allocations: 4.788 MB / 373.9 MB, free: 12.28 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.346, allocations: 0 / 373.9 MB, free: 12.28 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.736e-05/0.3461, allocations: 7.984 kB / 373.9 MB, free: 12.27 MB / 266.7 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.0009568/0.347, allocations: 0.5416 MB / 374.4 MB, free: 11.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.3471, allocations: 12.03 kB / 374.5 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/0.3472, allocations: 35.62 kB / 374.5 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004567/0.3477, allocations: 269.5 kB / 374.8 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.112e-05/0.3477, allocations: 8 kB / 374.8 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.956e-05/0.3478, allocations: 15.95 kB / 374.8 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003667/0.3481, allocations: 170.7 kB / 374.9 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004315/0.3486, allocations: 242.9 kB / 375.2 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.3486, allocations: 7.938 kB / 375.2 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.95e-05/0.3486, allocations: 4 kB / 375.2 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.3487, allocations: 9.75 kB / 375.2 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001743/0.3504, allocations: 1.09 MB / 376.3 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004689/0.3509, allocations: 192.2 kB / 376.5 MB, free: 9.973 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002486/0.3512, allocations: 135.4 kB / 376.6 MB, free: 9.879 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.476e-05/0.3512, allocations: 4.188 kB / 376.6 MB, free: 9.875 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002623/0.3515, allocations: 163.8 kB / 376.8 MB, free: 9.727 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 3.587e-06/0.3515, allocations: 0 / 376.8 MB, free: 9.727 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.000528/0.352, allocations: 246.5 kB / 377 MB, free: 9.535 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.302e-05/0.3521, allocations: 136.5 kB / 377.2 MB, free: 9.371 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001981/0.3523, allocations: 195 kB / 377.3 MB, free: 9.211 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.784e-05/0.3523, allocations: 25.7 kB / 377.4 MB, free: 9.18 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.3525, allocations: 168.9 kB / 377.5 MB, free: 9.039 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.855e-05/0.3525, allocations: 71.06 kB / 377.6 MB, free: 8.977 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.208e-05/0.3525, allocations: 4.031 kB / 377.6 MB, free: 8.973 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.3527, allocations: 332.4 kB / 377.9 MB, free: 8.648 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001015/0.3528, allocations: 58.38 kB / 378 MB, free: 8.617 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.3529, allocations: 108.2 kB / 378.1 MB, free: 8.527 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001131/0.353, allocations: 71.52 kB / 378.2 MB, free: 8.484 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3531, allocations: 0 / 378.2 MB, free: 8.484 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000378/0.3534, allocations: 249.5 kB / 378.4 MB, free: 8.297 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.3535, allocations: 7.906 kB / 378.4 MB, free: 8.289 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.3535, allocations: 0 / 378.4 MB, free: 8.289 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003141/0.3538, allocations: 95.52 kB / 378.5 MB, free: 8.219 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.3539, allocations: 31.45 kB / 378.5 MB, free: 8.191 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002005/0.356, allocations: 1.923 MB / 380.5 MB, free: 6.449 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002059/0.3562, allocations: 35.86 kB / 380.5 MB, free: 6.414 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/0.3562, allocations: 4 kB / 380.5 MB, free: 6.41 MB / 266.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: idealTriac.idealThyristor.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real idealTriac.idealThyristor1.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real 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,booleanPulse.y,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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 10} Notification: Performance of prepare postOptimizeDAE: time 0.0001502/0.3564, allocations: 118.7 kB / 380.6 MB, free: 6.293 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.232e-05/0.3564, allocations: 27.67 kB / 380.6 MB, free: 6.266 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.6e-05/0.3565, allocations: 27.7 kB / 380.7 MB, free: 6.254 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.3565, allocations: 4 kB / 380.7 MB, free: 6.25 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.3565, allocations: 0 / 380.7 MB, free: 6.25 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.3565, allocations: 4 kB / 380.7 MB, free: 6.246 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008432/0.3574, allocations: 0.7294 MB / 381.4 MB, free: 5.617 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.3574, allocations: 3.938 kB / 381.4 MB, free: 5.613 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.3575, allocations: 19.98 kB / 381.4 MB, free: 5.594 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002462/0.3577, allocations: 86.56 kB / 381.5 MB, free: 5.531 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.3578, allocations: 4 kB / 381.5 MB, free: 5.527 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001822/0.3596, allocations: 1.871 MB / 383.4 MB, free: 3.816 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.3596, allocations: 0 / 383.4 MB, free: 3.816 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004913/0.3601, allocations: 429.3 kB / 383.8 MB, free: 3.473 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000118/0.3603, allocations: 126 kB / 383.9 MB, free: 3.344 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.597e-05/0.3603, allocations: 0 / 383.9 MB, free: 3.344 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000195/0.3605, allocations: 15.98 kB / 384 MB, free: 3.328 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/0.3606, allocations: 41.88 kB / 384 MB, free: 3.293 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.3606, allocations: 6.188 kB / 384 MB, free: 3.289 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001288/0.3608, allocations: 160.1 kB / 384.2 MB, free: 3.156 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.853e-06/0.3608, allocations: 0 / 384.2 MB, free: 3.156 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004358/0.3612, allocations: 87.73 kB / 384.2 MB, free: 3.07 MB / 266.7 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.y,booleanPulse.pulsStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * 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.000172/0.3614, allocations: 97.41 kB / 384.3 MB, free: 2.969 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005731/0.362, allocations: 327.3 kB / 384.7 MB, free: 2.711 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.362, allocations: 0 / 384.7 MB, free: 2.711 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003562/0.3624, allocations: 238.2 kB / 384.9 MB, free: 2.512 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003608/0.3627, allocations: 43.16 kB / 384.9 MB, free: 2.48 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008/0.3635, allocations: 370.2 kB / 385.3 MB, free: 2.129 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/0.364, allocations: 0.7717 MB / 386.1 MB, free: 1.328 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001225/0.3641, allocations: 30.05 kB / 386.1 MB, free: 1.297 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.095e-05/0.3641, allocations: 15.44 kB / 386.1 MB, free: 1.281 MB / 266.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3641, allocations: 0 / 386.1 MB, free: 1.281 MB / 266.7 MB Notification: Performance of Templates: time 0.008057/0.3722, allocations: 3.83 MB / 389.9 MB, free: 13.46 MB / 282.7 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)