Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001534/0.001539, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001664/0.001664, allocations: 197 kB / 16.26 MB, free: 6.621 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.489/1.489, allocations: 205.1 MB / 222.1 MB, free: 4.719 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.001219/0.001219, allocations: 47.94 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3061/0.3073, allocations: 46.63 MB / 324.8 MB, free: 1.922 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004509/0.3118, allocations: 3.928 MB / 328.8 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001976/0.3138, allocations: 1.013 MB / 329.8 MB, free: 13.96 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003286/0.3143, allocations: 5.75 kB / 329.8 MB, free: 13.96 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002685/0.3145, allocations: 62.56 kB / 329.9 MB, free: 13.9 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003929/0.3149, allocations: 151.9 kB / 330 MB, free: 13.77 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004603/0.3154, allocations: 175.8 kB / 330.2 MB, free: 13.61 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009185/0.3163, allocations: 0.7599 MB / 330.9 MB, free: 13.15 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003232/0.3167, allocations: 171.9 kB / 331.1 MB, free: 13.05 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004238/0.3171, allocations: 292.5 kB / 331.4 MB, free: 12.88 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004587/0.3176, allocations: 330.8 kB / 331.7 MB, free: 12.64 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001288/0.3177, allocations: 76.78 kB / 331.8 MB, free: 12.64 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00014/0.3179, allocations: 77 kB / 331.9 MB, free: 12.64 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001347/0.318, allocations: 151.8 kB / 332 MB, free: 12.5 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003059/0.3183, allocations: 314 kB / 332.3 MB, free: 12.28 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008214/0.3191, allocations: 0.8 MB / 333.1 MB, free: 11.65 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3191, allocations: 4 kB / 333.1 MB, free: 11.65 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3192, allocations: 0 / 333.1 MB, free: 11.65 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.236e-06/0.3192, allocations: 0 / 333.1 MB, free: 11.65 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002451/0.3216, allocations: 0.9749 MB / 334.1 MB, free: 10.77 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.3217, allocations: 8.031 kB / 334.1 MB, free: 10.76 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/0.3218, allocations: 56.28 kB / 334.2 MB, free: 10.71 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004527/0.3223, allocations: 402 kB / 334.5 MB, free: 10.27 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.321e-05/0.3223, allocations: 29.38 kB / 334.6 MB, free: 10.25 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.656e-05/0.3224, allocations: 40.12 kB / 334.6 MB, free: 10.21 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001223/0.3236, allocations: 0.5669 MB / 335.2 MB, free: 9.617 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.3236, allocations: 0 / 335.2 MB, free: 9.617 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.819e-05/0.3237, allocations: 16 kB / 335.2 MB, free: 9.602 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.3237, allocations: 8 kB / 335.2 MB, free: 9.594 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001532/0.3252, allocations: 0.5777 MB / 335.8 MB, free: 9.02 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003317/0.3286, allocations: 2.016 MB / 337.8 MB, free: 6.91 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003577/0.3322, allocations: 0.7843 MB / 338.6 MB, free: 6.117 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008325/0.333, allocations: 365.3 kB / 338.9 MB, free: 5.758 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.016e-05/0.3331, allocations: 4 kB / 338.9 MB, free: 5.754 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001014/0.3341, allocations: 411.4 kB / 339.3 MB, free: 5.336 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 1.903e-06/0.3341, allocations: 0 / 339.3 MB, free: 5.336 MB / 270.1 MB Notification: Performance of matching and sorting (n=39): time 0.009028/0.3431, allocations: 1.79 MB / 341.1 MB, free: 3.516 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.056e-05/0.3432, allocations: 81.11 kB / 341.2 MB, free: 3.418 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004519/0.3437, allocations: 389.6 kB / 341.6 MB, free: 3.027 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.038e-05/0.3438, allocations: 37.7 kB / 341.6 MB, free: 2.984 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001803/0.3439, allocations: 220.6 kB / 341.9 MB, free: 2.762 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/0.3441, allocations: 130.1 kB / 342 MB, free: 2.633 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.3442, allocations: 74.06 kB / 342 MB, free: 2.551 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.3444, allocations: 350.8 kB / 342.4 MB, free: 2.199 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007943/0.3452, allocations: 268.6 kB / 342.7 MB, free: 1.938 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007709/0.346, allocations: 313.9 kB / 343 MB, free: 1.621 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/0.3474, allocations: 0.5485 MB / 343.5 MB, free: 1.059 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.095e-06/0.3474, allocations: 0 / 343.5 MB, free: 1.059 MB / 270.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004509/0.3519, allocations: 1.052 MB / 344.6 MB, free: 15.99 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.233e-05/0.352, allocations: 41.64 kB / 344.6 MB, free: 15.95 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.352, allocations: 3.938 kB / 344.6 MB, free: 15.94 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001165/0.3532, allocations: 396.5 kB / 345 MB, free: 15.55 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004135/0.3536, allocations: 83.86 kB / 345.1 MB, free: 15.47 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008276/0.3619, allocations: 3.669 MB / 348.7 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006957/0.3626, allocations: 87.66 kB / 348.8 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.656e-05/0.3627, allocations: 11.98 kB / 348.8 MB, free: 11.56 MB / 286.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.0003278/0.363, allocations: 174.5 kB / 349 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.868e-05/0.3631, allocations: 43.47 kB / 349.1 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00011/0.3632, allocations: 56.38 kB / 349.1 MB, free: 11.28 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.3632, allocations: 4 kB / 349.1 MB, free: 11.28 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.3633, allocations: 0 / 349.1 MB, free: 11.28 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.3633, allocations: 3.984 kB / 349.1 MB, free: 11.27 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006661/0.3639, allocations: 0.5911 MB / 349.7 MB, free: 10.63 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.364, allocations: 3.938 kB / 349.7 MB, free: 10.63 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003987/0.3644, allocations: 71.94 kB / 349.8 MB, free: 10.56 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001093/0.3655, allocations: 396.6 kB / 350.2 MB, free: 10.17 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.203e-05/0.3655, allocations: 11.94 kB / 350.2 MB, free: 10.16 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008042/0.3736, allocations: 3.66 MB / 353.8 MB, free: 6.359 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.3736, allocations: 3.984 kB / 353.8 MB, free: 6.355 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004474/0.3781, allocations: 1.255 MB / 355.1 MB, free: 5.078 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002541/0.3783, allocations: 168.5 kB / 355.3 MB, free: 4.895 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.439e-05/0.3784, allocations: 11.94 kB / 355.3 MB, free: 4.883 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000519/0.3789, allocations: 63.92 kB / 355.3 MB, free: 4.82 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001702/0.3791, allocations: 47.94 kB / 355.4 MB, free: 4.773 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-05/0.3792, allocations: 11.98 kB / 355.4 MB, free: 4.762 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000329/0.3795, allocations: 279.1 kB / 355.7 MB, free: 4.492 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3795, allocations: 0 / 355.7 MB, free: 4.492 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006512/0.3802, allocations: 175.7 kB / 355.8 MB, free: 4.32 MB / 286.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.0002496/0.3804, allocations: 107.2 kB / 355.9 MB, free: 4.203 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002445/0.3829, allocations: 0.8955 MB / 356.8 MB, free: 3.281 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3829, allocations: 0 / 356.8 MB, free: 3.281 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001456/0.3844, allocations: 0.5306 MB / 357.4 MB, free: 2.738 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004804/0.3849, allocations: 89.98 kB / 357.5 MB, free: 2.652 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0033/0.3882, allocations: 1.336 MB / 358.8 MB, free: 1.293 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000503/0.3887, allocations: 0.8277 MB / 359.6 MB, free: 452 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002314/0.3889, allocations: 47.27 kB / 359.7 MB, free: 404 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.389, allocations: 31.42 kB / 359.7 MB, free: 372 kB / 286.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3891, allocations: 0 / 359.7 MB, free: 372 kB / 286.1 MB Notification: Performance of Templates: time 0.02085/0.4099, allocations: 12.9 MB / 372.6 MB, free: 3.453 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)