Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001019/0.001019, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.0009837/0.0009838, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.711/1.711, allocations: 205.4 MB / 222.1 MB, free: 5.887 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.0005444/0.0005445, allocations: 12 kB / 278.9 MB, free: 13.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3773/0.3778, allocations: 47.58 MB / 326.4 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004001/0.3819, allocations: 3.15 MB / 329.6 MB, free: 14.92 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002038/0.384, allocations: 1.013 MB / 330.6 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000243/0.3842, allocations: 9.938 kB / 330.6 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001137/0.3844, allocations: 56.89 kB / 330.7 MB, free: 14.04 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004461/0.3848, allocations: 198.1 kB / 330.9 MB, free: 13.86 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00042/0.3852, allocations: 124 kB / 331 MB, free: 13.76 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006318/0.3859, allocations: 470.3 kB / 331.5 MB, free: 13.45 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003167/0.3862, allocations: 138.4 kB / 331.6 MB, free: 13.38 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003638/0.3866, allocations: 234.2 kB / 331.8 MB, free: 13.25 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004062/0.387, allocations: 278.7 kB / 332.1 MB, free: 13.06 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.577e-05/0.3871, allocations: 35.78 kB / 332.1 MB, free: 13.06 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.984e-05/0.3872, allocations: 31.75 kB / 332.2 MB, free: 13.06 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001074/0.3873, allocations: 100.6 kB / 332.3 MB, free: 12.97 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001501/0.3875, allocations: 128.6 kB / 332.4 MB, free: 12.89 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005799/0.388, allocations: 0.5936 MB / 333 MB, free: 12.43 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.3881, allocations: 3.938 kB / 333 MB, free: 12.42 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3881, allocations: 0 / 333 MB, free: 12.42 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.3881, allocations: 0 / 333 MB, free: 12.42 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.002581/0.3907, allocations: 0.951 MB / 333.9 MB, free: 11.7 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.3907, allocations: 9.844 kB / 333.9 MB, free: 11.7 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001393/0.3909, allocations: 55.5 kB / 334 MB, free: 11.68 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007563/0.3916, allocations: 384.1 kB / 334.4 MB, free: 11.32 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.841e-05/0.3917, allocations: 35.44 kB / 334.4 MB, free: 11.3 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.775e-05/0.3918, allocations: 36.31 kB / 334.4 MB, free: 11.29 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.3932, allocations: 0.5872 MB / 335 MB, free: 10.83 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.3932, allocations: 4 kB / 335 MB, free: 10.83 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.482e-05/0.3933, allocations: 20 kB / 335 MB, free: 10.81 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.3933, allocations: 8 kB / 335.1 MB, free: 10.8 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001743/0.3951, allocations: 0.6402 MB / 335.7 MB, free: 10.16 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003928/0.399, allocations: 2.051 MB / 337.7 MB, free: 8.012 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003903/0.4029, allocations: 0.9405 MB / 338.7 MB, free: 7.062 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.39e-05/0.403, allocations: 8.609 kB / 338.7 MB, free: 7.055 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001396/0.4044, allocations: 427.7 kB / 339.1 MB, free: 6.621 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 2.805e-06/0.4045, allocations: 4 kB / 339.1 MB, free: 6.617 MB / 270.1 MB Notification: Performance of matching and sorting (n=39): time 0.01012/0.4146, allocations: 2.037 MB / 341.2 MB, free: 4.551 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/0.4148, allocations: 85.06 kB / 341.2 MB, free: 4.449 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007212/0.4155, allocations: 385.6 kB / 341.6 MB, free: 4.059 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 8.037e-05/0.4156, allocations: 37.7 kB / 341.6 MB, free: 4.016 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002135/0.4158, allocations: 220.6 kB / 341.9 MB, free: 3.793 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/0.416, allocations: 126.1 kB / 342 MB, free: 3.668 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.46e-05/0.416, allocations: 12 kB / 342 MB, free: 3.656 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001998/0.4162, allocations: 350.8 kB / 342.3 MB, free: 3.305 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009232/0.4172, allocations: 304.6 kB / 342.6 MB, free: 3.004 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009116/0.4181, allocations: 346.1 kB / 343 MB, free: 2.656 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009145/0.419, allocations: 323.5 kB / 343.3 MB, free: 2.336 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.419, allocations: 0 / 343.3 MB, free: 2.336 MB / 270.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004887/0.4239, allocations: 1.179 MB / 344.5 MB, free: 1.141 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.609e-05/0.424, allocations: 29.7 kB / 344.5 MB, free: 1.105 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.424, allocations: 4 kB / 344.5 MB, free: 1.102 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001383/0.4254, allocations: 420.5 kB / 344.9 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005256/0.426, allocations: 99.86 kB / 345 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008969/0.435, allocations: 3.634 MB / 348.6 MB, free: 12.82 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008673/0.4359, allocations: 99.66 kB / 348.7 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001248/0.436, allocations: 12 kB / 348.8 MB, free: 12.71 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 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.000408/0.4364, allocations: 170.5 kB / 348.9 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001396/0.4366, allocations: 51.38 kB / 349 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001342/0.4367, allocations: 56.38 kB / 349 MB, free: 12.43 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.4368, allocations: 4 kB / 349 MB, free: 12.43 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.4368, allocations: 0 / 349 MB, free: 12.43 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.353e-06/0.4368, allocations: 0 / 349 MB, free: 12.43 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008461/0.4376, allocations: 0.5834 MB / 349.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.676e-06/0.4377, allocations: 11.94 kB / 349.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004644/0.4381, allocations: 83.88 kB / 349.7 MB, free: 11.7 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001266/0.4394, allocations: 420.6 kB / 350.1 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.945e-05/0.4395, allocations: 12 kB / 350.1 MB, free: 11.28 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008722/0.4482, allocations: 3.612 MB / 353.7 MB, free: 7.531 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.4483, allocations: 0 / 353.7 MB, free: 7.531 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004905/0.4532, allocations: 1.42 MB / 355.2 MB, free: 6.09 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004076/0.4536, allocations: 168.6 kB / 355.3 MB, free: 5.906 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001356/0.4538, allocations: 4 kB / 355.3 MB, free: 5.902 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005995/0.4544, allocations: 87.92 kB / 355.4 MB, free: 5.816 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001836/0.4546, allocations: 51.92 kB / 355.5 MB, free: 5.766 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.271e-05/0.4546, allocations: 15.98 kB / 355.5 MB, free: 5.75 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004218/0.4551, allocations: 271.2 kB / 355.7 MB, free: 5.488 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4551, allocations: 0 / 355.7 MB, free: 5.488 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007585/0.4558, allocations: 175.7 kB / 355.9 MB, free: 5.316 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002408/0.4561, allocations: 107.2 kB / 356 MB, free: 5.199 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002664/0.4588, allocations: 0.9313 MB / 357 MB, free: 4.242 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.4588, allocations: 0 / 357 MB, free: 4.242 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001546/0.4603, allocations: 0.5853 MB / 357.5 MB, free: 3.645 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005195/0.4609, allocations: 73.41 kB / 357.6 MB, free: 3.57 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003319/0.4642, allocations: 1.388 MB / 359 MB, free: 2.164 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004802/0.4647, allocations: 0.843 MB / 359.8 MB, free: 1.297 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002503/0.465, allocations: 43.27 kB / 359.9 MB, free: 1.25 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.824e-05/0.4651, allocations: 23.44 kB / 359.9 MB, free: 1.227 MB / 286.1 MB Notification: Performance of SimCode: time 1.332e-06/0.4651, allocations: 0 / 359.9 MB, free: 1.227 MB / 286.1 MB Notification: Performance of Templates: time 0.02195/0.487, allocations: 11.86 MB / 371.8 MB, free: 5.359 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) Environment - environmentSimulation: