Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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.CharacteristicThyristors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001176/0.001176, 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.001596/0.001596, allocations: 192.7 kB / 16.13 MB, free: 6.707 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.597/1.597, allocations: 205.1 MB / 222 MB, free: 4.988 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.001294/0.001295, allocations: 44.27 kB / 278 MB, free: 13.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2561, allocations: 46.63 MB / 324.7 MB, free: 2.051 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.0057/0.2619, allocations: 3.95 MB / 328.6 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003496/0.2654, allocations: 1.342 MB / 330 MB, free: 13.84 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000882/0.2663, allocations: 11.31 kB / 330 MB, free: 13.84 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001063/0.2675, allocations: 219.2 kB / 330.2 MB, free: 13.71 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009716/0.2684, allocations: 225.3 kB / 330.4 MB, free: 13.54 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008422/0.2693, allocations: 237.7 kB / 330.6 MB, free: 13.36 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009987/0.2703, allocations: 0.6835 MB / 331.3 MB, free: 12.96 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003579/0.2707, allocations: 147.8 kB / 331.5 MB, free: 12.88 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004167/0.2711, allocations: 257.2 kB / 331.7 MB, free: 12.73 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003675/0.2715, allocations: 286.5 kB / 332 MB, free: 12.55 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.189e-05/0.2716, allocations: 30.81 kB / 332 MB, free: 12.55 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002603/0.2718, allocations: 70.11 kB / 332.1 MB, free: 12.54 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000169/0.272, allocations: 127.8 kB / 332.2 MB, free: 12.44 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000364/0.2724, allocations: 281.6 kB / 332.5 MB, free: 12.25 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007595/0.2732, allocations: 0.6627 MB / 333.2 MB, free: 11.77 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2732, allocations: 0 / 333.2 MB, free: 11.77 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2732, allocations: 1.094 kB / 333.2 MB, free: 11.77 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.2732, allocations: 0 / 333.2 MB, free: 11.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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.00174/0.2749, allocations: 0.9397 MB / 334.1 MB, free: 10.83 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.275, allocations: 8.031 kB / 334.1 MB, free: 10.82 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001246/0.2751, allocations: 76.02 kB / 334.2 MB, free: 10.75 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005263/0.2757, allocations: 410.7 kB / 334.6 MB, free: 10.31 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.163e-05/0.2757, allocations: 33.38 kB / 334.6 MB, free: 10.28 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.808e-05/0.2758, allocations: 40.12 kB / 334.7 MB, free: 10.24 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007394/0.2765, allocations: 437.6 kB / 335.1 MB, free: 9.789 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.2765, allocations: 3.938 kB / 335.1 MB, free: 9.785 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.661e-05/0.2766, allocations: 23.98 kB / 335.1 MB, free: 9.762 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.2766, allocations: 11.98 kB / 335.1 MB, free: 9.75 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006133/0.2772, allocations: 311.8 kB / 335.4 MB, free: 9.445 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0025/0.2797, allocations: 1.699 MB / 337.1 MB, free: 7.652 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006942/0.2804, allocations: 371 kB / 337.5 MB, free: 7.281 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004234/0.2809, allocations: 188.3 kB / 337.7 MB, free: 7.094 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.023e-05/0.2809, allocations: 4 kB / 337.7 MB, free: 7.09 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004293/0.2814, allocations: 266.4 kB / 337.9 MB, free: 6.805 MB / 270.1 MB Notification: Performance of pre-optimization done (n=40): time 1.533e-06/0.2814, allocations: 0 / 337.9 MB, free: 6.805 MB / 270.1 MB Notification: Performance of matching and sorting (n=40): time 0.002123/0.2835, allocations: 1.009 MB / 338.9 MB, free: 5.703 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.2836, allocations: 195.9 kB / 339.1 MB, free: 5.469 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005672/0.2842, allocations: 0.494 MB / 339.6 MB, free: 4.957 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.024e-05/0.2843, allocations: 33.7 kB / 339.7 MB, free: 4.918 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002178/0.2845, allocations: 256.5 kB / 339.9 MB, free: 4.664 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/0.2846, allocations: 122.2 kB / 340 MB, free: 4.543 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001326/0.2847, allocations: 78.12 kB / 340.1 MB, free: 4.457 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.2849, allocations: 358.8 kB / 340.5 MB, free: 4.098 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002524/0.2852, allocations: 120.8 kB / 340.6 MB, free: 3.98 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003189/0.2855, allocations: 213.3 kB / 340.8 MB, free: 3.738 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004744/0.286, allocations: 269.3 kB / 341.1 MB, free: 3.465 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.286, allocations: 0 / 341.1 MB, free: 3.465 MB / 270.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008181/0.2868, allocations: 484.7 kB / 341.5 MB, free: 2.973 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.2869, allocations: 8 kB / 341.5 MB, free: 2.965 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.2869, allocations: 8.094 kB / 341.5 MB, free: 2.957 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005178/0.2874, allocations: 151.3 kB / 341.7 MB, free: 2.797 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002078/0.2876, allocations: 47.91 kB / 341.7 MB, free: 2.75 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004584/0.2922, allocations: 5.962 MB / 347.7 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003931/0.2926, allocations: 55.83 kB / 347.8 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.043e-05/0.2927, allocations: 8 kB / 347.8 MB, free: 12.2 MB / 286.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: 16 ($PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,IdealGTOThyristor2.off,IdealThyristor2.off,$PRE.IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEvent,IdealGTOThyristor1.off,IdealThyristor1.fire,IdealThyristor1.off,$PRE.IdealThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002829/0.2929, allocations: 192.6 kB / 347.9 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.849e-05/0.293, allocations: 55.28 kB / 348 MB, free: 11.94 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001067/0.2932, allocations: 64.77 kB / 348.1 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.2932, allocations: 4 kB / 348.1 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2932, allocations: 0 / 348.1 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.2932, allocations: 3.984 kB / 348.1 MB, free: 11.87 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004991/0.2937, allocations: 496.9 kB / 348.6 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.2937, allocations: 0 / 348.6 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001268/0.2938, allocations: 31.97 kB / 348.6 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00042/0.2943, allocations: 159.2 kB / 348.7 MB, free: 11.14 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.521e-05/0.2943, allocations: 15.98 kB / 348.8 MB, free: 11.12 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004277/0.2986, allocations: 5.792 MB / 354.6 MB, free: 4.789 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.2986, allocations: 3.938 kB / 354.6 MB, free: 4.785 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009588/0.2996, allocations: 0.5046 MB / 355.1 MB, free: 4.25 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001738/0.2998, allocations: 156.3 kB / 355.2 MB, free: 4.078 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.787e-05/0.2999, allocations: 12 kB / 355.2 MB, free: 4.066 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002638/0.3001, allocations: 27.97 kB / 355.3 MB, free: 4.039 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001357/0.3003, allocations: 59.86 kB / 355.3 MB, free: 3.98 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.417e-05/0.3003, allocations: 15.98 kB / 355.3 MB, free: 3.965 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004001/0.3007, allocations: 359.1 kB / 355.7 MB, free: 3.617 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3007, allocations: 0 / 355.7 MB, free: 3.617 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007632/0.3015, allocations: 171.7 kB / 355.8 MB, free: 3.449 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001022/0.3025, allocations: 434 kB / 356.3 MB, free: 3.023 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001068/0.3036, allocations: 0.7914 MB / 357.1 MB, free: 2.18 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.3036, allocations: 4 kB / 357.1 MB, free: 2.176 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006561/0.3043, allocations: 0.6432 MB / 357.7 MB, free: 1.48 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005819/0.3049, allocations: 113.8 kB / 357.8 MB, free: 1.371 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/0.3069, allocations: 1.165 MB / 359 MB, free: 188 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004322/0.3073, allocations: 0.8593 MB / 359.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002044/0.3075, allocations: 56.14 kB / 359.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.654e-05/0.3076, allocations: 27.44 kB / 359.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3076, allocations: 0 / 359.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of Templates: time 0.01456/0.3222, allocations: 8.761 MB / 368.7 MB, free: 6.438 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1)