Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002801/0.002801, allocations: 175.5 kB / 7.451 MB, free: 2.504 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.29/1.29, allocations: 170.6 MB / 178.4 MB, free: 15.29 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.001999/0.001999, allocations: 115.8 kB / 217.7 MB, free: 8.051 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.398e-05/1.41e-05, allocations: 4 kB / 261.7 MB, free: 26.63 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09949/0.09953, allocations: 38.76 MB / 300.5 MB, free: 3.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.295/0.3946, allocations: 70.13 MB / 370.6 MB, free: 14.37 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003318/0.395, allocations: 70.95 kB / 370.7 MB, free: 14.33 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.02821/0.4233, allocations: 8.054 MB / 378.8 MB, free: 7.531 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.617e-05/0.4233, allocations: 12 kB / 378.8 MB, free: 7.52 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002751/0.4261, allocations: 0.8648 MB / 379.6 MB, free: 6.629 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.091e-05/0.4262, allocations: 8.031 kB / 379.6 MB, free: 6.621 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004321/0.4266, allocations: 58.28 kB / 379.7 MB, free: 6.566 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001145/0.4278, allocations: 370.1 kB / 380.1 MB, free: 6.223 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.427e-05/0.4279, allocations: 15.91 kB / 380.1 MB, free: 6.207 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001629/0.4281, allocations: 23.81 kB / 380.1 MB, free: 6.188 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009008/0.429, allocations: 367.4 kB / 380.5 MB, free: 5.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008859/0.4299, allocations: 410.8 kB / 380.9 MB, free: 5.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.4299, allocations: 0 / 380.9 MB, free: 5.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.1e-05/0.43, allocations: 0 / 380.9 MB, free: 5.68 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.43, allocations: 8 kB / 380.9 MB, free: 5.672 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004662/0.4346, allocations: 1.99 MB / 382.9 MB, free: 4.043 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004487/0.4351, allocations: 234.6 kB / 383.1 MB, free: 3.906 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004368/0.4356, allocations: 246.5 kB / 383.3 MB, free: 3.762 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.336e-05/0.4356, allocations: 11.19 kB / 383.3 MB, free: 3.754 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004964/0.4361, allocations: 271.5 kB / 383.6 MB, free: 3.555 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 2.285e-06/0.4361, allocations: 0 / 383.6 MB, free: 3.555 MB / 266.7 MB Notification: Performance of matching and sorting (n=39): time 0.001445/0.4376, allocations: 0.5185 MB / 384.1 MB, free: 3.188 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.794e-05/0.4377, allocations: 84.61 kB / 384.2 MB, free: 3.09 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000388/0.4381, allocations: 283 kB / 384.5 MB, free: 2.871 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.536e-05/0.4381, allocations: 33.69 kB / 384.5 MB, free: 2.832 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.4383, allocations: 177.8 kB / 384.7 MB, free: 2.672 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.4384, allocations: 127 kB / 384.8 MB, free: 2.562 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.058e-05/0.4385, allocations: 3.938 kB / 384.8 MB, free: 2.559 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.4386, allocations: 353.9 kB / 385.2 MB, free: 2.219 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003007/0.4389, allocations: 158 kB / 385.3 MB, free: 2.137 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003445/0.4393, allocations: 191.9 kB / 385.5 MB, free: 2.02 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002992/0.4396, allocations: 147.1 kB / 385.6 MB, free: 1.941 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.4396, allocations: 0 / 385.6 MB, free: 1.941 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001158/0.4408, allocations: 0.5385 MB / 386.2 MB, free: 1.566 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.4408, allocations: 7.906 kB / 386.2 MB, free: 1.559 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.4408, allocations: 4 kB / 386.2 MB, free: 1.555 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000971/0.4418, allocations: 329.4 kB / 386.5 MB, free: 1.316 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005141/0.4423, allocations: 103.7 kB / 386.6 MB, free: 1.219 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007989/0.4503, allocations: 2.834 MB / 389.5 MB, free: 14.85 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008935/0.4513, allocations: 99.81 kB / 389.6 MB, free: 14.75 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-05/0.4514, allocations: 19.81 kB / 389.6 MB, free: 14.73 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleTriac.thyristor.vGK:VARIABLE() "voltage between gate and cathode" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete 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 (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 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002883/0.4517, allocations: 118 kB / 389.7 MB, free: 14.61 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/0.4518, allocations: 39.53 kB / 389.7 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001786/0.452, allocations: 47 kB / 389.8 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/0.452, allocations: 7.938 kB / 389.8 MB, free: 14.54 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.452, allocations: 7.906 kB / 389.8 MB, free: 14.54 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.452, allocations: 4 kB / 389.8 MB, free: 14.53 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008429/0.4529, allocations: 0.5189 MB / 390.3 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.4529, allocations: 3.906 kB / 390.3 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005206/0.4534, allocations: 91.86 kB / 390.4 MB, free: 14.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009205/0.4544, allocations: 333.5 kB / 390.7 MB, free: 13.78 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.469e-05/0.4544, allocations: 4 kB / 390.7 MB, free: 13.78 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007747/0.4622, allocations: 2.833 MB / 393.6 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.742e-06/0.4623, allocations: 0 / 393.6 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002145/0.4644, allocations: 0.7958 MB / 394.4 MB, free: 10.89 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004353/0.4649, allocations: 169.1 kB / 394.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001574/0.4651, allocations: 7.312 kB / 394.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007303/0.4658, allocations: 91.92 kB / 394.6 MB, free: 10.64 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001388/0.466, allocations: 35.19 kB / 394.7 MB, free: 10.61 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.475e-05/0.466, allocations: 11.98 kB / 394.7 MB, free: 10.6 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.0003223/0.4664, allocations: 229.1 kB / 394.9 MB, free: 10.43 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007229/0.4671, allocations: 147.8 kB / 395 MB, free: 10.28 MB / 282.7 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) * 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 (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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002714/0.4674, allocations: 107.4 kB / 395.1 MB, free: 10.17 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001636/0.469, allocations: 0.5698 MB / 395.7 MB, free: 9.75 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.469, allocations: 3.938 kB / 395.7 MB, free: 9.746 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009836/0.47, allocations: 385.2 kB / 396.1 MB, free: 9.457 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000491/0.4705, allocations: 49.58 kB / 396.1 MB, free: 9.418 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003191/0.4737, allocations: 0.7997 MB / 396.9 MB, free: 8.688 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006487/0.4744, allocations: 0.8619 MB / 397.8 MB, free: 7.801 MB / 282.7 MB Notification: Performance of SimCode: time 3.01e-07/0.4744, allocations: 4 kB / 397.8 MB, free: 7.797 MB / 282.7 MB Notification: Performance of Templates: time 0.02144/0.4959, allocations: 10.13 MB / 407.9 MB, free: 13.64 MB / 298.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)