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.001549/0.001549, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001662/0.001662, allocations: 199.3 kB / 16.14 MB, free: 6.664 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.86/1.86, allocations: 205.1 MB / 222 MB, free: 4.77 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.001147/0.001147, allocations: 56.36 kB / 278.1 MB, free: 12.78 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3145, allocations: 46.63 MB / 324.7 MB, free: 2.277 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.006124/0.3207, allocations: 3.924 MB / 328.6 MB, free: 15.16 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002749/0.3235, allocations: 1.015 MB / 329.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003383/0.3238, allocations: 9.438 kB / 329.6 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000325/0.3242, allocations: 62.67 kB / 329.7 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004208/0.3246, allocations: 139.6 kB / 329.8 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006174/0.3253, allocations: 187.8 kB / 330 MB, free: 13.97 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000991/0.3263, allocations: 0.7122 MB / 330.7 MB, free: 13.54 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004317/0.3267, allocations: 146.8 kB / 330.9 MB, free: 13.46 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005062/0.3272, allocations: 251.5 kB / 331.1 MB, free: 13.32 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000467/0.3277, allocations: 299.2 kB / 331.4 MB, free: 13.12 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001129/0.3278, allocations: 41.58 kB / 331.4 MB, free: 13.11 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001217/0.328, allocations: 36.69 kB / 331.5 MB, free: 13.11 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001503/0.3281, allocations: 113 kB / 331.6 MB, free: 13.02 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000381/0.3285, allocations: 278.1 kB / 331.9 MB, free: 12.82 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009277/0.3295, allocations: 0.7558 MB / 332.6 MB, free: 12.23 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.3295, allocations: 0 / 332.6 MB, free: 12.23 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3295, allocations: 0 / 332.6 MB, free: 12.23 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.677e-05/0.3295, allocations: 1.5 kB / 332.6 MB, free: 12.23 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.00297/0.3325, allocations: 0.9764 MB / 333.6 MB, free: 11.42 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.848e-05/0.3325, allocations: 12.03 kB / 333.6 MB, free: 11.41 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001523/0.3327, allocations: 56.28 kB / 333.7 MB, free: 11.36 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006842/0.3334, allocations: 397.9 kB / 334.1 MB, free: 10.93 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.872e-05/0.3335, allocations: 33.38 kB / 334.1 MB, free: 10.89 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.209e-05/0.3336, allocations: 40.12 kB / 334.1 MB, free: 10.86 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001491/0.3351, allocations: 0.5591 MB / 334.7 MB, free: 10.28 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.77e-05/0.3351, allocations: 4 kB / 334.7 MB, free: 10.27 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.559e-05/0.3352, allocations: 15.94 kB / 334.7 MB, free: 10.26 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.3352, allocations: 16 kB / 334.7 MB, free: 10.24 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001735/0.3369, allocations: 0.5738 MB / 335.3 MB, free: 9.668 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00372/0.3407, allocations: 2.004 MB / 337.3 MB, free: 7.574 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003794/0.3445, allocations: 0.7959 MB / 338.1 MB, free: 6.77 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001013/0.3455, allocations: 369 kB / 338.5 MB, free: 6.406 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.819e-05/0.3456, allocations: 11.94 kB / 338.5 MB, free: 6.395 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001281/0.3469, allocations: 403.4 kB / 338.9 MB, free: 5.984 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 3.396e-06/0.3469, allocations: 0 / 338.9 MB, free: 5.984 MB / 270.1 MB Notification: Performance of matching and sorting (n=39): time 0.009855/0.3568, allocations: 1.794 MB / 340.7 MB, free: 4.16 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/0.3569, allocations: 85.05 kB / 340.7 MB, free: 4.059 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006137/0.3575, allocations: 381.7 kB / 341.1 MB, free: 3.672 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 8.085e-05/0.3576, allocations: 33.7 kB / 341.1 MB, free: 3.633 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002334/0.3579, allocations: 224.6 kB / 341.4 MB, free: 3.406 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001725/0.3581, allocations: 134.1 kB / 341.5 MB, free: 3.273 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001765/0.3582, allocations: 74.06 kB / 341.6 MB, free: 3.191 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002218/0.3585, allocations: 354.8 kB / 341.9 MB, free: 2.836 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000841/0.3593, allocations: 264.6 kB / 342.2 MB, free: 2.578 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008657/0.3602, allocations: 313.9 kB / 342.5 MB, free: 2.262 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/0.3618, allocations: 0.5407 MB / 343 MB, free: 1.707 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/0.3618, allocations: 0 / 343 MB, free: 1.707 MB / 270.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004954/0.3668, allocations: 1.06 MB / 344.1 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.866e-05/0.3669, allocations: 33.69 kB / 344.1 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.3669, allocations: 0 / 344.1 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001307/0.3682, allocations: 400.4 kB / 344.5 MB, free: 204 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004594/0.3687, allocations: 87.92 kB / 344.6 MB, free: 116 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008314/0.377, allocations: 3.31 MB / 347.9 MB, free: 12.67 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007584/0.3778, allocations: 87.56 kB / 348 MB, free: 12.58 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.593e-05/0.3778, allocations: 19.92 kB / 348 MB, free: 12.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.0002849/0.3781, allocations: 162.5 kB / 348.2 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.513e-05/0.3782, allocations: 39.53 kB / 348.2 MB, free: 12.36 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001239/0.3783, allocations: 56.31 kB / 348.3 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.3784, allocations: 4 kB / 348.3 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.3784, allocations: 4 kB / 348.3 MB, free: 12.29 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.3784, allocations: 7.922 kB / 348.3 MB, free: 12.29 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007744/0.3792, allocations: 0.5833 MB / 348.9 MB, free: 11.65 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.3792, allocations: 0 / 348.9 MB, free: 11.65 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004225/0.3796, allocations: 71.88 kB / 348.9 MB, free: 11.58 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001189/0.3808, allocations: 396.6 kB / 349.3 MB, free: 11.19 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.161e-05/0.3809, allocations: 15.94 kB / 349.3 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00861/0.3895, allocations: 3.303 MB / 352.6 MB, free: 7.738 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.3896, allocations: 0 / 352.6 MB, free: 7.738 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004618/0.3942, allocations: 1.267 MB / 353.9 MB, free: 6.449 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004155/0.3946, allocations: 176.5 kB / 354.1 MB, free: 6.258 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.3948, allocations: 4 kB / 354.1 MB, free: 6.254 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005393/0.3953, allocations: 63.92 kB / 354.1 MB, free: 6.191 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002116/0.3955, allocations: 51.92 kB / 354.2 MB, free: 6.141 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.417e-05/0.3956, allocations: 8 kB / 354.2 MB, free: 6.133 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004168/0.396, allocations: 279.2 kB / 354.5 MB, free: 5.863 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.396, allocations: 4 kB / 354.5 MB, free: 5.859 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008135/0.3968, allocations: 171.7 kB / 354.6 MB, free: 5.691 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.0002597/0.3971, allocations: 107.2 kB / 354.7 MB, free: 5.574 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002708/0.3998, allocations: 0.8721 MB / 355.6 MB, free: 4.676 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3998, allocations: 4 kB / 355.6 MB, free: 4.672 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001636/0.4015, allocations: 0.5267 MB / 356.1 MB, free: 4.133 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005888/0.4021, allocations: 81.7 kB / 356.2 MB, free: 4.055 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00356/0.4057, allocations: 1.334 MB / 357.6 MB, free: 2.699 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006912/0.4064, allocations: 0.8313 MB / 358.4 MB, free: 1.844 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002854/0.4067, allocations: 43.27 kB / 358.4 MB, free: 1.801 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.4068, allocations: 27.44 kB / 358.5 MB, free: 1.773 MB / 286.1 MB Notification: Performance of SimCode: time 9.91e-07/0.4068, allocations: 0 / 358.5 MB, free: 1.773 MB / 286.1 MB Notification: Performance of Templates: time 0.02462/0.4314, allocations: 12.28 MB / 370.7 MB, free: 5.484 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)