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.0008816/0.0008817, allocations: 89.97 kB / 15.36 MB, free: 0.7383 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.007892/0.007892, allocations: 174.4 kB / 16.27 MB, free: 6.613 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.665/1.665, allocations: 205.4 MB / 222.4 MB, free: 5.559 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.0007342/0.0007344, allocations: 12 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3829/0.3836, allocations: 47.59 MB / 327 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003486/0.3872, allocations: 2.562 MB / 329.6 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00176/0.389, allocations: 0.7474 MB / 330.3 MB, free: 14.76 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002254/0.3892, allocations: 8.531 kB / 330.3 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002225/0.3895, allocations: 36.25 kB / 330.4 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002631/0.3898, allocations: 86.34 kB / 330.5 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004659/0.3902, allocations: 97.31 kB / 330.6 MB, free: 14.56 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006585/0.3909, allocations: 383.6 kB / 330.9 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003191/0.3912, allocations: 109.8 kB / 331 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002805/0.3915, allocations: 123.3 kB / 331.2 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003052/0.3918, allocations: 136.3 kB / 331.3 MB, free: 14.12 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.135e-05/0.3919, allocations: 15.97 kB / 331.3 MB, free: 14.12 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.443e-05/0.392, allocations: 15.19 kB / 331.3 MB, free: 14.12 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.3921, allocations: 59.97 kB / 331.4 MB, free: 14.07 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002734/0.3924, allocations: 172.9 kB / 331.6 MB, free: 13.94 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005072/0.3929, allocations: 396.7 kB / 331.9 MB, free: 13.65 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.3929, allocations: 0 / 331.9 MB, free: 13.65 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.077e-06/0.3929, allocations: 0 / 331.9 MB, free: 13.65 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.3929, allocations: 0 / 331.9 MB, free: 13.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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001382/0.3943, allocations: 0.5776 MB / 332.5 MB, free: 13.13 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.629e-05/0.3944, allocations: 8.906 kB / 332.5 MB, free: 13.13 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/0.3945, allocations: 33.91 kB / 332.6 MB, free: 13.11 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004973/0.395, allocations: 282.8 kB / 332.8 MB, free: 12.83 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.694e-05/0.3951, allocations: 19.34 kB / 332.9 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.444e-05/0.3951, allocations: 24.59 kB / 332.9 MB, free: 12.81 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006146/0.3958, allocations: 294.5 kB / 333.2 MB, free: 12.62 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.3958, allocations: 0 / 333.2 MB, free: 12.62 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.023e-05/0.3958, allocations: 11.28 kB / 333.2 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/0.3959, allocations: 9.906 kB / 333.2 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005055/0.3964, allocations: 207.6 kB / 333.4 MB, free: 12.51 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002008/0.3984, allocations: 1.165 MB / 334.6 MB, free: 11.52 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005781/0.399, allocations: 220.7 kB / 334.8 MB, free: 11.39 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003256/0.3993, allocations: 151.1 kB / 334.9 MB, free: 11.26 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.3994, allocations: 0 / 334.9 MB, free: 11.26 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003618/0.3997, allocations: 166.7 kB / 335.1 MB, free: 11.07 MB / 270.1 MB Notification: Performance of pre-optimization done (n=22): time 2.074e-06/0.3997, allocations: 4 kB / 335.1 MB, free: 11.07 MB / 270.1 MB Notification: Performance of matching and sorting (n=22): time 0.001502/0.4013, allocations: 0.5302 MB / 335.6 MB, free: 10.51 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001373/0.4014, allocations: 136.5 kB / 335.7 MB, free: 10.34 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003177/0.4017, allocations: 244.9 kB / 336 MB, free: 10.09 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.4018, allocations: 29.7 kB / 336 MB, free: 10.06 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/0.4019, allocations: 160.5 kB / 336.2 MB, free: 9.898 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.508e-05/0.402, allocations: 71 kB / 336.2 MB, free: 9.828 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.925e-05/0.4021, allocations: 29.7 kB / 336.3 MB, free: 9.793 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.4023, allocations: 338.8 kB / 336.6 MB, free: 9.453 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/0.4024, allocations: 75.97 kB / 336.7 MB, free: 9.379 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002024/0.4026, allocations: 121.1 kB / 336.8 MB, free: 9.242 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003217/0.403, allocations: 179.3 kB / 337 MB, free: 9.055 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.403, allocations: 0 / 337 MB, free: 9.055 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000536/0.4035, allocations: 294.1 kB / 337.3 MB, free: 8.758 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.4035, allocations: 8 kB / 337.3 MB, free: 8.75 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.4036, allocations: 0 / 337.3 MB, free: 8.75 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003551/0.4039, allocations: 92.8 kB / 337.4 MB, free: 8.656 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001393/0.4041, allocations: 27.92 kB / 337.4 MB, free: 8.629 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002367/0.4064, allocations: 1.959 MB / 339.3 MB, free: 6.535 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002485/0.4067, allocations: 35.73 kB / 339.4 MB, free: 6.5 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.337e-05/0.4067, allocations: 8 kB / 339.4 MB, free: 6.492 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.0002185/0.407, allocations: 150.5 kB / 339.5 MB, free: 6.336 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.536e-05/0.407, allocations: 19.81 kB / 339.6 MB, free: 6.316 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.41e-05/0.4071, allocations: 34.25 kB / 339.6 MB, free: 6.281 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.4071, allocations: 3.938 kB / 339.6 MB, free: 6.277 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.364e-05/0.4071, allocations: 7.984 kB / 339.6 MB, free: 6.27 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.4071, allocations: 0 / 339.6 MB, free: 6.27 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009948/0.4081, allocations: 0.7692 MB / 340.4 MB, free: 5.438 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.4082, allocations: 4.016 kB / 340.4 MB, free: 5.434 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.4083, allocations: 23.94 kB / 340.4 MB, free: 5.41 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002803/0.4086, allocations: 92.84 kB / 340.5 MB, free: 5.316 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.4086, allocations: 4 kB / 340.5 MB, free: 5.312 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002212/0.4108, allocations: 1.928 MB / 342.4 MB, free: 3.254 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.4108, allocations: 3.984 kB / 342.4 MB, free: 3.25 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000723/0.4116, allocations: 464.9 kB / 342.9 MB, free: 2.773 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.4117, allocations: 124.8 kB / 343 MB, free: 2.633 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.533e-05/0.4118, allocations: 4 kB / 343 MB, free: 2.629 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002163/0.412, allocations: 39.97 kB / 343 MB, free: 2.59 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.4121, allocations: 31.95 kB / 343.1 MB, free: 2.559 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.4121, allocations: 4 kB / 343.1 MB, free: 2.555 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001911/0.4123, allocations: 176.5 kB / 343.2 MB, free: 2.383 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4123, allocations: 0 / 343.2 MB, free: 2.383 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004945/0.4128, allocations: 87.84 kB / 343.3 MB, free: 2.297 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.0001794/0.413, allocations: 107.2 kB / 343.4 MB, free: 2.18 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.000735/0.4138, allocations: 366.4 kB / 343.8 MB, free: 1.809 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4138, allocations: 96 / 343.8 MB, free: 1.809 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004357/0.4142, allocations: 270.5 kB / 344.1 MB, free: 1.531 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004997/0.4147, allocations: 56.78 kB / 344.1 MB, free: 1.477 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00122/0.416, allocations: 0.7345 MB / 344.8 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003569/0.4163, allocations: 0.7675 MB / 345.6 MB, free: 15.92 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001068/0.4164, allocations: 22.28 kB / 345.6 MB, free: 15.9 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.714e-05/0.4165, allocations: 15.44 kB / 345.7 MB, free: 15.88 MB / 286.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4165, allocations: 4 kB / 345.7 MB, free: 15.88 MB / 286.1 MB Notification: Performance of Templates: time 0.009941/0.4265, allocations: 4.411 MB / 350.1 MB, free: 11.47 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)