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.001295/0.001295, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001697/0.001697, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.51/1.51, allocations: 205.1 MB / 222.4 MB, free: 4.566 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.001725/0.001725, allocations: 59.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3498/0.3515, allocations: 46.63 MB / 325.3 MB, free: 1.895 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005781/0.3574, allocations: 3.892 MB / 329.2 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002825/0.3603, allocations: 1.021 MB / 330.2 MB, free: 13.94 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005615/0.3609, allocations: 6.5 kB / 330.2 MB, free: 13.94 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003123/0.3612, allocations: 81.27 kB / 330.3 MB, free: 13.86 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004597/0.3617, allocations: 164.3 kB / 330.5 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007748/0.3625, allocations: 215 kB / 330.7 MB, free: 13.52 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001339/0.3639, allocations: 0.7605 MB / 331.4 MB, free: 13.06 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004061/0.3643, allocations: 171.6 kB / 331.6 MB, free: 12.96 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005418/0.3648, allocations: 293.3 kB / 331.9 MB, free: 12.79 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004647/0.3653, allocations: 334.8 kB / 332.2 MB, free: 12.55 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001817/0.3655, allocations: 79.91 kB / 332.3 MB, free: 12.54 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001475/0.3657, allocations: 76.94 kB / 332.4 MB, free: 12.54 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001693/0.3658, allocations: 149.1 kB / 332.5 MB, free: 12.41 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003754/0.3662, allocations: 316.6 kB / 332.8 MB, free: 12.18 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001018/0.3672, allocations: 0.788 MB / 333.6 MB, free: 11.57 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.3673, allocations: 1.094 kB / 333.6 MB, free: 11.57 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3673, allocations: 0 / 333.6 MB, free: 11.57 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.3673, allocations: 0 / 333.6 MB, free: 11.57 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.002748/0.37, allocations: 0.9793 MB / 334.6 MB, free: 10.59 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.937e-05/0.3701, allocations: 12.03 kB / 334.6 MB, free: 10.57 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.3703, allocations: 56.28 kB / 334.7 MB, free: 10.52 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005794/0.3709, allocations: 402 kB / 335.1 MB, free: 10.09 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.477e-05/0.3709, allocations: 29.38 kB / 335.1 MB, free: 10.06 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.554e-05/0.371, allocations: 44.12 kB / 335.1 MB, free: 10.02 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001404/0.3724, allocations: 0.563 MB / 335.7 MB, free: 9.426 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.3725, allocations: 0 / 335.7 MB, free: 9.426 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.846e-05/0.3725, allocations: 16 kB / 335.7 MB, free: 9.41 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.093e-05/0.3726, allocations: 8 kB / 335.7 MB, free: 9.402 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001777/0.3744, allocations: 0.5777 MB / 336.3 MB, free: 8.828 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004119/0.3785, allocations: 2.016 MB / 338.3 MB, free: 6.719 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003619/0.3821, allocations: 0.7844 MB / 339.1 MB, free: 5.926 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009502/0.3831, allocations: 365.3 kB / 339.5 MB, free: 5.566 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.496e-05/0.3832, allocations: 8 kB / 339.5 MB, free: 5.559 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001201/0.3844, allocations: 407.3 kB / 339.9 MB, free: 5.145 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 2.465e-06/0.3844, allocations: 0 / 339.9 MB, free: 5.145 MB / 270.1 MB Notification: Performance of matching and sorting (n=39): time 0.009595/0.394, allocations: 1.79 MB / 341.6 MB, free: 3.324 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/0.3942, allocations: 81.11 kB / 341.7 MB, free: 3.227 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006627/0.3949, allocations: 385.7 kB / 342.1 MB, free: 2.844 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 7.934e-05/0.395, allocations: 37.7 kB / 342.1 MB, free: 2.801 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/0.3952, allocations: 220.6 kB / 342.4 MB, free: 2.578 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001763/0.3954, allocations: 138 kB / 342.5 MB, free: 2.441 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001811/0.3956, allocations: 70.06 kB / 342.6 MB, free: 2.363 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.3958, allocations: 346.8 kB / 342.9 MB, free: 2.016 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008881/0.3967, allocations: 268.6 kB / 343.2 MB, free: 1.754 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008697/0.3976, allocations: 321.8 kB / 343.5 MB, free: 1.43 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001622/0.3992, allocations: 0.5368 MB / 344 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.3992, allocations: 0 / 344 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004665/0.4039, allocations: 1.056 MB / 345.1 MB, free: 15.8 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.087e-05/0.404, allocations: 41.64 kB / 345.1 MB, free: 15.76 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.404, allocations: 0 / 345.1 MB, free: 15.76 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001445/0.4055, allocations: 400.5 kB / 345.5 MB, free: 15.37 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004769/0.406, allocations: 79.86 kB / 345.6 MB, free: 15.29 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009088/0.4151, allocations: 3.677 MB / 349.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008028/0.4159, allocations: 83.66 kB / 349.3 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.245e-05/0.416, allocations: 16 kB / 349.4 MB, free: 11.37 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.0003659/0.4164, allocations: 169.8 kB / 349.5 MB, free: 11.2 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001704/0.4166, allocations: 47.45 kB / 349.6 MB, free: 11.15 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001415/0.4167, allocations: 52.38 kB / 349.6 MB, free: 11.1 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.4167, allocations: 4 kB / 349.6 MB, free: 11.09 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.4168, allocations: 0 / 349.6 MB, free: 11.09 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.4168, allocations: 0 / 349.6 MB, free: 11.09 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008876/0.4177, allocations: 0.5872 MB / 350.2 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.368e-06/0.4177, allocations: 7.938 kB / 350.2 MB, free: 10.45 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004469/0.4181, allocations: 75.8 kB / 350.3 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001195/0.4193, allocations: 392.6 kB / 350.7 MB, free: 9.988 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.257e-05/0.4194, allocations: 11.98 kB / 350.7 MB, free: 9.977 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008767/0.4282, allocations: 3.67 MB / 354.4 MB, free: 6.168 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.4283, allocations: 0 / 354.4 MB, free: 6.168 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004748/0.433, allocations: 1.271 MB / 355.6 MB, free: 4.875 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005241/0.4336, allocations: 168.5 kB / 355.8 MB, free: 4.691 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001652/0.4338, allocations: 11.94 kB / 355.8 MB, free: 4.68 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006484/0.4344, allocations: 59.92 kB / 355.9 MB, free: 4.621 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002489/0.4347, allocations: 51.94 kB / 355.9 MB, free: 4.57 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.14e-05/0.4347, allocations: 8 kB / 355.9 MB, free: 4.562 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004035/0.4352, allocations: 275.2 kB / 356.2 MB, free: 4.293 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4352, allocations: 0 / 356.2 MB, free: 4.293 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000826/0.436, allocations: 175.7 kB / 356.4 MB, free: 4.121 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.0003084/0.4363, allocations: 109.7 kB / 356.5 MB, free: 4.004 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002843/0.4392, allocations: 0.8877 MB / 357.4 MB, free: 3.09 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.4392, allocations: 7.938 kB / 357.4 MB, free: 3.082 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001573/0.4408, allocations: 0.5423 MB / 357.9 MB, free: 2.527 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006516/0.4414, allocations: 69.53 kB / 358 MB, free: 2.461 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003655/0.4451, allocations: 1.164 MB / 359.1 MB, free: 1.27 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005672/0.4457, allocations: 0.8356 MB / 360 MB, free: 420 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000285/0.446, allocations: 39.28 kB / 360 MB, free: 380 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.4461, allocations: 23.44 kB / 360 MB, free: 356 kB / 286.1 MB Notification: Performance of SimCode: time 1.563e-06/0.4461, allocations: 4 kB / 360 MB, free: 352 kB / 286.1 MB Notification: Performance of Templates: time 0.0293/0.4754, allocations: 13.15 MB / 373.2 MB, free: 3.18 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)