Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_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.001118/0.001118, allocations: 107.2 kB / 17.74 MB, free: 5.359 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.001248/0.001248, allocations: 186.4 kB / 18.67 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 43.94 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2646, allocations: 49.44 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004549/0.2692, allocations: 4.049 MB / 405.5 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001494/0.2708, allocations: 1.017 MB / 406.5 MB, free: 3.797 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001761/0.2709, allocations: 8 kB / 406.5 MB, free: 3.789 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002053/0.2712, allocations: 87.14 kB / 406.6 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002932/0.2715, allocations: 182.4 kB / 406.8 MB, free: 3.523 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004327/0.2719, allocations: 219.7 kB / 407 MB, free: 3.309 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006944/0.2726, allocations: 0.8134 MB / 407.8 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002617/0.2729, allocations: 176.9 kB / 408 MB, free: 2.316 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003305/0.2732, allocations: 306.9 kB / 408.3 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003777/0.2736, allocations: 358.7 kB / 408.6 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001054/0.2737, allocations: 80 kB / 408.7 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001176/0.2738, allocations: 84 kB / 408.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001354/0.274, allocations: 159.4 kB / 408.9 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002803/0.2743, allocations: 326.6 kB / 409.2 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006727/0.275, allocations: 0.8461 MB / 410.1 MB, free: 188 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.275, allocations: 7.984 kB / 410.1 MB, free: 180 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.275, allocations: 4 kB / 410.1 MB, free: 176 kB / 318.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.275, allocations: 0 / 410.1 MB, free: 176 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002551/0.2775, allocations: 1.015 MB / 411.1 MB, free: 15.1 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.2776, allocations: 8.031 kB / 411.1 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001186/0.2777, allocations: 64.19 kB / 411.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005335/0.2783, allocations: 421.9 kB / 411.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.527e-05/0.2783, allocations: 29.38 kB / 411.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.569e-05/0.2784, allocations: 36.38 kB / 411.7 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/0.2798, allocations: 0.5993 MB / 412.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.2799, allocations: 0 / 412.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.185e-05/0.2799, allocations: 12 kB / 412.3 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.2799, allocations: 8 kB / 412.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001941/0.2819, allocations: 0.6245 MB / 412.9 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003567/0.2854, allocations: 2.153 MB / 415.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00387/0.2893, allocations: 0.8393 MB / 415.9 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00105/0.2904, allocations: 390.8 kB / 416.3 MB, free: 9.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.79e-05/0.2905, allocations: 4.328 kB / 416.3 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001122/0.2916, allocations: 426.6 kB / 416.7 MB, free: 9.312 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.916e-06/0.2916, allocations: 0 / 416.7 MB, free: 9.312 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.0141/0.3057, allocations: 2.289 MB / 419 MB, free: 6.992 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.946e-05/0.3058, allocations: 81.11 kB / 419.1 MB, free: 6.895 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004606/0.3062, allocations: 410 kB / 419.5 MB, free: 6.492 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.928e-05/0.3063, allocations: 33.7 kB / 419.5 MB, free: 6.453 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.3065, allocations: 224.6 kB / 419.7 MB, free: 6.227 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001277/0.3066, allocations: 134.1 kB / 419.9 MB, free: 6.094 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001643/0.3068, allocations: 81.91 kB / 419.9 MB, free: 6.004 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.3069, allocations: 362.7 kB / 420.3 MB, free: 5.641 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009296/0.3079, allocations: 288.6 kB / 420.6 MB, free: 5.359 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009454/0.3088, allocations: 330.1 kB / 420.9 MB, free: 5.031 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001782/0.3106, allocations: 0.5834 MB / 421.5 MB, free: 4.434 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.3106, allocations: 0 / 421.5 MB, free: 4.434 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003573/0.3142, allocations: 0.9783 MB / 422.5 MB, free: 3.441 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.649e-05/0.3143, allocations: 37.69 kB / 422.5 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.3143, allocations: 0 / 422.5 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001227/0.3156, allocations: 400.1 kB / 422.9 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004953/0.3161, allocations: 87.91 kB / 423 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008563/0.3246, allocations: 3.668 MB / 426.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006804/0.3253, allocations: 95.64 kB / 426.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.708e-05/0.3254, allocations: 19.94 kB / 426.7 MB, free: 14.99 MB / 350.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 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.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.0002453/0.3257, allocations: 169.8 kB / 426.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.3258, allocations: 43.44 kB / 427 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001398/0.3259, allocations: 60.45 kB / 427 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.3259, allocations: 0 / 427 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.3259, allocations: 4 kB / 427 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002472/0.3262, allocations: 176.4 kB / 427.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.13e-05/0.3263, allocations: 11.94 kB / 427.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006171/0.3269, allocations: 79.84 kB / 427.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.327, allocations: 39.94 kB / 427.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004284/0.3313, allocations: 1.102 MB / 428.4 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002957/0.3343, allocations: 1.181 MB / 429.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009173/0.3352, allocations: 299.8 kB / 429.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002961/0.3355, allocations: 287.2 kB / 430.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of Backend: time 6.91e-07/0.3355, allocations: 0 / 430.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002116/0.3377, allocations: 0.7263 MB / 430.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of SimCode: time 0.001744/0.3394, allocations: 1.517 MB / 432.4 MB, free: 9.191 MB / 350.1 MB Notification: Performance of Templates: time 0.01864/0.3581, allocations: 12.18 MB / 444.6 MB, free: 13.1 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)