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.001315/0.001315, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001363/0.001363, allocations: 199.2 kB / 16.14 MB, free: 6.715 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.592/1.592, allocations: 205.1 MB / 222 MB, free: 4.777 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.001256/0.001256, allocations: 52.39 kB / 278 MB, free: 12.78 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3165, allocations: 46.64 MB / 324.7 MB, free: 2.051 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.005007/0.3216, allocations: 2.915 MB / 327.6 MB, free: 15.75 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001901/0.3235, allocations: 0.7682 MB / 328.4 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002098/0.3238, allocations: 5.344 kB / 328.4 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002152/0.324, allocations: 35.41 kB / 328.4 MB, free: 15.09 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000258/0.3243, allocations: 82.53 kB / 328.5 MB, free: 15.02 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003809/0.3247, allocations: 94.23 kB / 328.6 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005013/0.3252, allocations: 385.6 kB / 329 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003299/0.3256, allocations: 110.2 kB / 329.1 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002739/0.3258, allocations: 138.6 kB / 329.2 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002379/0.3261, allocations: 149.2 kB / 329.3 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.508e-05/0.3262, allocations: 20.25 kB / 329.4 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.818e-05/0.3262, allocations: 19.91 kB / 329.4 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.566e-05/0.3263, allocations: 60.2 kB / 329.4 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001942/0.3265, allocations: 167.5 kB / 329.6 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004597/0.327, allocations: 400.1 kB / 330 MB, free: 14 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.019e-05/0.327, allocations: 5.094 kB / 330 MB, free: 14 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.327, allocations: 0 / 330 MB, free: 14 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.686e-06/0.327, allocations: 0 / 330 MB, free: 14 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.001445/0.3285, allocations: 0.6179 MB / 330.6 MB, free: 13.45 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.424e-05/0.3285, allocations: 13.91 kB / 330.6 MB, free: 13.45 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.305e-05/0.3286, allocations: 37.59 kB / 330.7 MB, free: 13.43 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004019/0.329, allocations: 278.9 kB / 330.9 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.675e-05/0.3291, allocations: 19.56 kB / 331 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.029e-05/0.3292, allocations: 27.84 kB / 331 MB, free: 13.12 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006366/0.3298, allocations: 288.7 kB / 331.3 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.3298, allocations: 1.125 kB / 331.3 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.773e-05/0.3299, allocations: 14.34 kB / 331.3 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.641e-05/0.3299, allocations: 6.094 kB / 331.3 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005327/0.3304, allocations: 208 kB / 331.5 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00225/0.3327, allocations: 1.153 MB / 332.6 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006893/0.3334, allocations: 219.1 kB / 332.9 MB, free: 11.69 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003912/0.3338, allocations: 149.8 kB / 333 MB, free: 11.62 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.919e-05/0.3339, allocations: 2.781 kB / 333 MB, free: 11.62 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00055/0.3344, allocations: 170.9 kB / 333.2 MB, free: 11.47 MB / 270.1 MB Notification: Performance of pre-optimization done (n=22): time 1.814e-06/0.3344, allocations: 1.094 kB / 333.2 MB, free: 11.47 MB / 270.1 MB Notification: Performance of matching and sorting (n=22): time 0.001558/0.336, allocations: 0.5065 MB / 333.7 MB, free: 10.98 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.3361, allocations: 140.5 kB / 333.8 MB, free: 10.82 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003008/0.3364, allocations: 241 kB / 334.1 MB, free: 10.57 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.599e-05/0.3365, allocations: 25.7 kB / 334.1 MB, free: 10.54 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001391/0.3366, allocations: 172.4 kB / 334.2 MB, free: 10.37 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.071e-05/0.3367, allocations: 67 kB / 334.3 MB, free: 10.3 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.384e-05/0.3368, allocations: 49.7 kB / 334.4 MB, free: 10.25 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.3369, allocations: 334.8 kB / 334.7 MB, free: 9.91 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001556/0.3371, allocations: 75.97 kB / 334.8 MB, free: 9.836 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002133/0.3373, allocations: 121 kB / 334.9 MB, free: 9.699 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003276/0.3376, allocations: 171.3 kB / 335 MB, free: 9.52 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.3377, allocations: 0 / 335 MB, free: 9.52 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005133/0.3382, allocations: 294 kB / 335.3 MB, free: 9.223 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.3382, allocations: 7.984 kB / 335.3 MB, free: 9.215 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.3382, allocations: 0 / 335.3 MB, free: 9.215 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004183/0.3386, allocations: 92.75 kB / 335.4 MB, free: 9.121 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001552/0.3388, allocations: 36.02 kB / 335.5 MB, free: 9.086 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002663/0.3415, allocations: 1.94 MB / 337.4 MB, free: 7.008 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000281/0.3418, allocations: 31.77 kB / 337.4 MB, free: 6.977 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.442e-05/0.3418, allocations: 15.94 kB / 337.5 MB, free: 6.961 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.0002299/0.3421, allocations: 154.5 kB / 337.6 MB, free: 6.801 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.989e-05/0.3421, allocations: 23.72 kB / 337.6 MB, free: 6.777 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.815e-05/0.3422, allocations: 30.17 kB / 337.7 MB, free: 6.746 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.3422, allocations: 7.938 kB / 337.7 MB, free: 6.738 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.3422, allocations: 0 / 337.7 MB, free: 6.738 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.3422, allocations: 0 / 337.7 MB, free: 6.738 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001073/0.3433, allocations: 0.7733 MB / 338.4 MB, free: 5.902 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.3433, allocations: 7.969 kB / 338.4 MB, free: 5.895 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001154/0.3435, allocations: 23.92 kB / 338.5 MB, free: 5.871 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002635/0.3437, allocations: 84.8 kB / 338.6 MB, free: 5.785 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.457e-05/0.3438, allocations: 11.98 kB / 338.6 MB, free: 5.773 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002117/0.3459, allocations: 1.92 MB / 340.5 MB, free: 3.723 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.3459, allocations: 0 / 340.5 MB, free: 3.723 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000703/0.3466, allocations: 468.9 kB / 340.9 MB, free: 3.242 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000116/0.3467, allocations: 120.8 kB / 341.1 MB, free: 3.105 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.081e-05/0.3468, allocations: 11.94 kB / 341.1 MB, free: 3.094 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002004/0.347, allocations: 19.98 kB / 341.1 MB, free: 3.074 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.3471, allocations: 35.95 kB / 341.1 MB, free: 3.039 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.3472, allocations: 4 kB / 341.1 MB, free: 3.035 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002312/0.3474, allocations: 172.5 kB / 341.3 MB, free: 2.867 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3474, allocations: 0 / 341.3 MB, free: 2.867 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005327/0.3479, allocations: 95.84 kB / 341.4 MB, free: 2.773 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.0002061/0.3482, allocations: 103.2 kB / 341.5 MB, free: 2.66 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0007646/0.3489, allocations: 350.4 kB / 341.8 MB, free: 2.305 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.349, allocations: 0 / 341.8 MB, free: 2.305 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003952/0.3494, allocations: 270.4 kB / 342.1 MB, free: 2.027 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004937/0.3499, allocations: 65.05 kB / 342.2 MB, free: 1.965 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001449/0.3513, allocations: 0.6875 MB / 342.9 MB, free: 1.25 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004289/0.3518, allocations: 0.7713 MB / 343.6 MB, free: 464 kB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001089/0.3519, allocations: 22.28 kB / 343.6 MB, free: 444 kB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.584e-05/0.3519, allocations: 19.44 kB / 343.7 MB, free: 424 kB / 270.1 MB Notification: Performance of SimCode: time 1.422e-06/0.352, allocations: 0 / 343.7 MB, free: 424 kB / 270.1 MB Notification: Performance of Templates: time 0.01002/0.362, allocations: 4.463 MB / 348.1 MB, free: 11.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)