Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 110.9 kB / 17.06 MB, free: 5.977 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.001441/0.001441, allocations: 200 kB / 18.01 MB, free: 5.059 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.512/1.512, allocations: 205.1 MB / 223.9 MB, free: 12.21 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.001191/0.001191, allocations: 51.92 kB / 327.9 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1259, allocations: 46.62 MB / 374.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.007218/0.1332, allocations: 3.89 MB / 378.4 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.3009/0.4342, allocations: 1.014 MB / 379.4 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004891/0.4347, allocations: 8.625 kB / 379.4 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002946/0.435, allocations: 86.67 kB / 379.5 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003974/0.4355, allocations: 165.8 kB / 379.7 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005659/0.436, allocations: 206.5 kB / 379.9 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008495/0.4369, allocations: 0.7604 MB / 380.6 MB, free: 9.598 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003319/0.4372, allocations: 178.2 kB / 380.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004009/0.4376, allocations: 292.6 kB / 381.1 MB, free: 9.531 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004164/0.4381, allocations: 338.6 kB / 381.4 MB, free: 9.469 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001656/0.4382, allocations: 76.81 kB / 381.5 MB, free: 9.469 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001565/0.4384, allocations: 80.09 kB / 381.6 MB, free: 9.465 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001315/0.4385, allocations: 149.5 kB / 381.7 MB, free: 9.441 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00037/0.4389, allocations: 315.9 kB / 382 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00106/0.44, allocations: 0.8028 MB / 382.8 MB, free: 9.121 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.044e-05/0.44, allocations: 1.484 kB / 382.8 MB, free: 9.121 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.44, allocations: 3.938 kB / 382.8 MB, free: 9.117 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.44, allocations: 0 / 382.8 MB, free: 9.117 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002683/0.4427, allocations: 0.9741 MB / 383.8 MB, free: 8.465 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.5e-05/0.4428, allocations: 9.281 kB / 383.8 MB, free: 8.465 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001496/0.4429, allocations: 61.52 kB / 383.9 MB, free: 8.434 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007131/0.4437, allocations: 405.9 kB / 384.3 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.425e-05/0.4437, allocations: 27.97 kB / 384.3 MB, free: 8.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.931e-05/0.4438, allocations: 37.22 kB / 384.3 MB, free: 8.078 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.4452, allocations: 0.5645 MB / 384.9 MB, free: 7.828 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.4453, allocations: 0 / 384.9 MB, free: 7.828 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.896e-05/0.4453, allocations: 16.66 kB / 384.9 MB, free: 7.816 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.549e-05/0.4453, allocations: 8.141 kB / 384.9 MB, free: 7.816 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001999/0.4474, allocations: 0.5749 MB / 385.5 MB, free: 7.641 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003767/0.4511, allocations: 2.002 MB / 387.5 MB, free: 6.344 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003661/0.4548, allocations: 0.7985 MB / 388.3 MB, free: 6.098 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00101/0.4558, allocations: 364.2 kB / 388.6 MB, free: 5.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.673e-05/0.4559, allocations: 12.47 kB / 388.7 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00105/0.457, allocations: 396 kB / 389 MB, free: 5.816 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.375e-06/0.457, allocations: 4 kB / 389 MB, free: 5.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.009855/0.4668, allocations: 1.787 MB / 390.8 MB, free: 5.344 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.002e-05/0.4669, allocations: 87.19 kB / 390.9 MB, free: 5.246 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006437/0.4676, allocations: 386.8 kB / 391.3 MB, free: 5.051 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.655e-05/0.4677, allocations: 36.27 kB / 391.3 MB, free: 5.012 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001967/0.4679, allocations: 221.5 kB / 391.5 MB, free: 4.832 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001487/0.468, allocations: 131.7 kB / 391.7 MB, free: 4.73 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001895/0.4682, allocations: 70.17 kB / 391.7 MB, free: 4.688 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.4684, allocations: 349.3 kB / 392.1 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009497/0.4693, allocations: 272.1 kB / 392.3 MB, free: 4.277 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008982/0.4702, allocations: 312.6 kB / 392.7 MB, free: 4.156 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001683/0.4719, allocations: 0.5402 MB / 393.2 MB, free: 3.941 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.4719, allocations: 0 / 393.2 MB, free: 3.941 MB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004737/0.4767, allocations: 1.06 MB / 394.3 MB, free: 3.602 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.097e-05/0.4767, allocations: 37.77 kB / 394.3 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.4768, allocations: 0 / 394.3 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00122/0.478, allocations: 399.6 kB / 394.7 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004544/0.4785, allocations: 76.25 kB / 394.8 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007909/0.4864, allocations: 3.673 MB / 398.4 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008294/0.4872, allocations: 83.53 kB / 398.5 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.762e-05/0.4873, allocations: 25.55 kB / 398.5 MB, free: 0.9453 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (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 {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0002988/0.4876, allocations: 169.1 kB / 398.7 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.274e-05/0.4877, allocations: 48.17 kB / 398.7 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.976e-05/0.4878, allocations: 50 kB / 398.8 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.4878, allocations: 4.125 kB / 398.8 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.4878, allocations: 1.375 kB / 398.8 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.4878, allocations: 3.984 kB / 398.8 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006357/0.4885, allocations: 0.5936 MB / 399.4 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.4885, allocations: 1.094 kB / 399.4 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004249/0.4889, allocations: 70.47 kB / 399.5 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001101/0.49, allocations: 396.3 kB / 399.9 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.376e-05/0.4901, allocations: 11.45 kB / 399.9 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008627/0.4987, allocations: 3.666 MB / 403.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/0.4988, allocations: 0 / 403.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004776/0.5036, allocations: 1.258 MB / 404.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003963/0.504, allocations: 165.6 kB / 405 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.731e-05/0.5041, allocations: 17.59 kB / 405 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005256/0.5046, allocations: 61.7 kB / 405 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001868/0.5048, allocations: 47.62 kB / 405.1 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.12e-05/0.5049, allocations: 15.42 kB / 405.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004072/0.5053, allocations: 276.3 kB / 405.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.734e-06/0.5053, allocations: 0 / 405.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007621/0.5061, allocations: 178.2 kB / 405.5 MB, free: 12.09 MB / 334.1 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) * Number of clocked states: 0 () * 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 (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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001945/0.5063, allocations: 107.5 kB / 405.6 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002864/0.5091, allocations: 0.8786 MB / 406.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.5092, allocations: 0 / 406.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001731/0.5109, allocations: 0.5403 MB / 407.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006873/0.5116, allocations: 81.02 kB / 407.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004021/0.5156, allocations: 1.154 MB / 408.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005665/0.5162, allocations: 0.8308 MB / 409.1 MB, free: 9.594 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002949/0.5165, allocations: 37.5 kB / 409.2 MB, free: 9.574 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.5167, allocations: 31.53 kB / 409.2 MB, free: 9.562 MB / 334.1 MB Notification: Performance of SimCode: time 1.002e-06/0.5167, allocations: 0 / 409.2 MB, free: 9.562 MB / 334.1 MB Notification: Performance of Templates: time 0.02521/0.5419, allocations: 13.69 MB / 422.9 MB, free: 13.32 MB / 350.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)