Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001431/0.001431, 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.001757/0.001757, allocations: 196 kB / 16.25 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.488/1.488, allocations: 205.1 MB / 222.1 MB, free: 4.711 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.001334/0.001335, allocations: 47.92 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3182/0.3195, allocations: 46.63 MB / 324.8 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004111/0.3237, allocations: 2.925 MB / 327.8 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001309/0.325, allocations: 0.762 MB / 328.5 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001445/0.3252, allocations: 11.16 kB / 328.5 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001772/0.3254, allocations: 37.28 kB / 328.6 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001953/0.3256, allocations: 86.47 kB / 328.7 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002996/0.3259, allocations: 85.66 kB / 328.7 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004525/0.3264, allocations: 414.1 kB / 329.1 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002919/0.3267, allocations: 124.7 kB / 329.3 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002199/0.3269, allocations: 146.2 kB / 329.4 MB, free: 14.4 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002181/0.3271, allocations: 168.9 kB / 329.6 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.632e-05/0.3272, allocations: 41.41 kB / 329.6 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.689e-05/0.3273, allocations: 36.88 kB / 329.7 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.305e-05/0.3274, allocations: 72.14 kB / 329.7 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001833/0.3276, allocations: 179.4 kB / 329.9 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005143/0.3281, allocations: 427.1 kB / 330.3 MB, free: 13.77 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.3281, allocations: 0 / 330.3 MB, free: 13.77 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3281, allocations: 0 / 330.3 MB, free: 13.77 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.3281, allocations: 0 / 330.3 MB, free: 13.77 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001245/0.3294, allocations: 0.6227 MB / 330.9 MB, free: 13.22 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.624e-05/0.3295, allocations: 8.938 kB / 330.9 MB, free: 13.22 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/0.3296, allocations: 38.53 kB / 331 MB, free: 13.2 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00045/0.33, allocations: 274.3 kB / 331.3 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.759e-05/0.3301, allocations: 19.72 kB / 331.3 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.25e-05/0.3302, allocations: 27.94 kB / 331.3 MB, free: 12.9 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007171/0.3309, allocations: 297.3 kB / 331.6 MB, free: 12.7 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.3309, allocations: 0 / 331.6 MB, free: 12.7 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.185e-05/0.331, allocations: 10.41 kB / 331.6 MB, free: 12.7 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.331, allocations: 6.469 kB / 331.6 MB, free: 12.7 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005015/0.3315, allocations: 206.6 kB / 331.8 MB, free: 12.59 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001823/0.3333, allocations: 1.159 MB / 333 MB, free: 11.6 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005617/0.3339, allocations: 219.2 kB / 333.2 MB, free: 11.47 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003173/0.3342, allocations: 138.4 kB / 333.3 MB, free: 11.41 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.059e-05/0.3343, allocations: 6.25 kB / 333.3 MB, free: 11.4 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004168/0.3347, allocations: 172.3 kB / 333.5 MB, free: 11.23 MB / 270.1 MB Notification: Performance of pre-optimization done (n=22): time 1.343e-06/0.3347, allocations: 0 / 333.5 MB, free: 11.23 MB / 270.1 MB Notification: Performance of matching and sorting (n=22): time 0.001417/0.3361, allocations: 0.5146 MB / 334 MB, free: 10.68 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/0.3363, allocations: 132.5 kB / 334.1 MB, free: 10.52 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002901/0.3366, allocations: 237 kB / 334.4 MB, free: 10.28 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.281e-05/0.3366, allocations: 33.7 kB / 334.4 MB, free: 10.24 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.3367, allocations: 172.4 kB / 334.6 MB, free: 10.07 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.848e-05/0.3368, allocations: 75 kB / 334.6 MB, free: 9.996 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.72e-05/0.3369, allocations: 45.7 kB / 334.7 MB, free: 9.945 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.3371, allocations: 330.8 kB / 335 MB, free: 9.613 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.3372, allocations: 71.97 kB / 335.1 MB, free: 9.543 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001789/0.3374, allocations: 125 kB / 335.2 MB, free: 9.402 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002953/0.3377, allocations: 175.3 kB / 335.4 MB, free: 9.219 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3377, allocations: 0 / 335.4 MB, free: 9.219 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004785/0.3382, allocations: 290 kB / 335.7 MB, free: 8.926 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.3383, allocations: 12.09 kB / 335.7 MB, free: 8.914 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.3383, allocations: 0 / 335.7 MB, free: 8.914 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003953/0.3387, allocations: 92.73 kB / 335.8 MB, free: 8.82 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.3388, allocations: 27.98 kB / 335.8 MB, free: 8.793 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002717/0.3416, allocations: 2.15 MB / 337.9 MB, free: 6.5 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002207/0.3418, allocations: 27.83 kB / 338 MB, free: 6.473 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.804e-05/0.3418, allocations: 8 kB / 338 MB, free: 6.465 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001692/0.342, allocations: 151.3 kB / 338.1 MB, free: 6.309 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.515e-05/0.342, allocations: 31.66 kB / 338.2 MB, free: 6.277 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.589e-05/0.3421, allocations: 34.17 kB / 338.2 MB, free: 6.242 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.3421, allocations: 4 kB / 338.2 MB, free: 6.238 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.3421, allocations: 0 / 338.2 MB, free: 6.238 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.3421, allocations: 0 / 338.2 MB, free: 6.238 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009916/0.3431, allocations: 0.7802 MB / 339 MB, free: 5.395 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3431, allocations: 0 / 339 MB, free: 5.395 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.3433, allocations: 23.92 kB / 339 MB, free: 5.371 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002444/0.3435, allocations: 88.81 kB / 339.1 MB, free: 5.281 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.208e-05/0.3436, allocations: 3.984 kB / 339.1 MB, free: 5.277 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00234/0.3459, allocations: 2.139 MB / 341.2 MB, free: 3.004 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.3459, allocations: 0 / 341.2 MB, free: 3.004 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008313/0.3468, allocations: 456.9 kB / 341.7 MB, free: 2.535 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000148/0.3469, allocations: 120.8 kB / 341.8 MB, free: 2.398 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.48e-05/0.347, allocations: 8 kB / 341.8 MB, free: 2.391 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001931/0.3472, allocations: 19.97 kB / 341.8 MB, free: 2.371 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.3473, allocations: 43.95 kB / 341.9 MB, free: 2.328 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.536e-05/0.3473, allocations: 4 kB / 341.9 MB, free: 2.324 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001916/0.3475, allocations: 176.5 kB / 342 MB, free: 2.152 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3475, allocations: 0 / 342 MB, free: 2.152 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005379/0.3481, allocations: 91.94 kB / 342.1 MB, free: 2.062 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000238/0.3483, allocations: 115.2 kB / 342.2 MB, free: 1.938 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0008854/0.3492, allocations: 362.3 kB / 342.6 MB, free: 1.57 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3492, allocations: 0 / 342.6 MB, free: 1.57 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004202/0.3497, allocations: 262.4 kB / 342.8 MB, free: 1.301 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004683/0.3501, allocations: 65.03 kB / 342.9 MB, free: 1.238 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/0.3514, allocations: 0.7049 MB / 343.6 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005134/0.3519, allocations: 0.7713 MB / 344.4 MB, free: 15.71 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001012/0.352, allocations: 18.3 kB / 344.4 MB, free: 15.69 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.556e-05/0.3521, allocations: 19.44 kB / 344.4 MB, free: 15.67 MB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3521, allocations: 3.938 kB / 344.4 MB, free: 15.67 MB / 286.1 MB Notification: Performance of Templates: time 0.01053/0.3626, allocations: 4.716 MB / 349.1 MB, free: 10.95 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1)