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.001533/0.001533, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002678/0.002678, allocations: 195.3 kB / 16.53 MB, free: 6.664 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.596/1.596, allocations: 205.1 MB / 222.4 MB, free: 4.582 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.001318/0.001318, allocations: 56.39 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2792, allocations: 46.63 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005984/0.2852, allocations: 3.926 MB / 329.2 MB, free: 14.74 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002823/0.2881, allocations: 1.345 MB / 330.6 MB, free: 13.65 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005014/0.2887, allocations: 10.88 kB / 330.6 MB, free: 13.64 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000973/0.2897, allocations: 256.3 kB / 330.8 MB, free: 13.47 MB / 270.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0007897/0.2905, allocations: 244.9 kB / 331.1 MB, free: 13.29 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000757/0.2912, allocations: 265.1 kB / 331.3 MB, free: 13.07 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000823/0.2921, allocations: 0.7085 MB / 332 MB, free: 12.65 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003009/0.2924, allocations: 168 kB / 332.2 MB, free: 12.56 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004009/0.2928, allocations: 280.8 kB / 332.5 MB, free: 12.4 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003584/0.2932, allocations: 298.6 kB / 332.8 MB, free: 12.2 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.436e-05/0.2933, allocations: 49.97 kB / 332.8 MB, free: 12.2 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002636/0.2935, allocations: 98.59 kB / 332.9 MB, free: 12.18 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001666/0.2937, allocations: 143.9 kB / 333.1 MB, free: 12.07 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003882/0.2941, allocations: 298.9 kB / 333.4 MB, free: 11.85 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007348/0.2948, allocations: 0.6968 MB / 334.1 MB, free: 11.15 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2949, allocations: 0 / 334.1 MB, free: 11.15 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2949, allocations: 3.938 kB / 334.1 MB, free: 11.14 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.2949, allocations: 3.984 kB / 334.1 MB, free: 11.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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001716/0.2966, allocations: 0.9375 MB / 335 MB, free: 10.14 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.2967, allocations: 12.03 kB / 335 MB, free: 10.13 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/0.2968, allocations: 68.09 kB / 335.1 MB, free: 10.07 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005164/0.2973, allocations: 402.8 kB / 335.5 MB, free: 9.633 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.509e-05/0.2974, allocations: 33.31 kB / 335.5 MB, free: 9.602 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.815e-05/0.2974, allocations: 48.06 kB / 335.5 MB, free: 9.555 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007523/0.2982, allocations: 441.6 kB / 336 MB, free: 9.098 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.2982, allocations: 0 / 336 MB, free: 9.098 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.319e-05/0.2983, allocations: 16 kB / 336 MB, free: 9.082 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.776e-05/0.2983, allocations: 12 kB / 336 MB, free: 9.07 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000621/0.2989, allocations: 315.7 kB / 336.3 MB, free: 8.762 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002392/0.3013, allocations: 1.703 MB / 338 MB, free: 6.965 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006539/0.302, allocations: 363.7 kB / 338.4 MB, free: 6.602 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003109/0.3023, allocations: 188.5 kB / 338.6 MB, free: 6.414 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.528e-05/0.3024, allocations: 11.98 kB / 338.6 MB, free: 6.402 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004145/0.3028, allocations: 254.4 kB / 338.8 MB, free: 6.129 MB / 270.1 MB Notification: Performance of pre-optimization done (n=40): time 1.834e-06/0.3028, allocations: 0 / 338.8 MB, free: 6.129 MB / 270.1 MB Notification: Performance of matching and sorting (n=40): time 0.002159/0.305, allocations: 1.016 MB / 339.8 MB, free: 5.02 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.3051, allocations: 195.8 kB / 340 MB, free: 4.785 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006073/0.3057, allocations: 0.494 MB / 340.5 MB, free: 4.277 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.062e-05/0.3058, allocations: 33.7 kB / 340.6 MB, free: 4.238 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002045/0.306, allocations: 252.5 kB / 340.8 MB, free: 3.988 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.3061, allocations: 118.3 kB / 340.9 MB, free: 3.871 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001313/0.3062, allocations: 74.12 kB / 341 MB, free: 3.789 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.3064, allocations: 358.8 kB / 341.3 MB, free: 3.43 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000243/0.3066, allocations: 128.8 kB / 341.5 MB, free: 3.305 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003142/0.307, allocations: 213.3 kB / 341.7 MB, free: 3.062 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004614/0.3074, allocations: 273.3 kB / 341.9 MB, free: 2.785 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3074, allocations: 0 / 341.9 MB, free: 2.785 MB / 270.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008115/0.3083, allocations: 480.6 kB / 342.4 MB, free: 2.297 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.3083, allocations: 8.094 kB / 342.4 MB, free: 2.289 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.3083, allocations: 4 kB / 342.4 MB, free: 2.285 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005559/0.3089, allocations: 163.3 kB / 342.6 MB, free: 2.113 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002334/0.3091, allocations: 47.97 kB / 342.6 MB, free: 2.066 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004929/0.3141, allocations: 6.654 MB / 349.3 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004299/0.3145, allocations: 55.69 kB / 349.3 MB, free: 10.81 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.71e-05/0.3146, allocations: 8 kB / 349.3 MB, free: 10.8 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.0002949/0.3149, allocations: 192.1 kB / 349.5 MB, free: 10.6 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.478e-05/0.3149, allocations: 55.28 kB / 349.6 MB, free: 10.55 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001108/0.3151, allocations: 68.69 kB / 349.6 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.3151, allocations: 4 kB / 349.7 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3151, allocations: 0 / 349.7 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.3151, allocations: 4.078 kB / 349.7 MB, free: 10.47 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005205/0.3156, allocations: 489.1 kB / 350.1 MB, free: 9.945 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.3156, allocations: 0 / 350.1 MB, free: 9.945 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001346/0.3158, allocations: 27.98 kB / 350.2 MB, free: 9.918 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000432/0.3162, allocations: 163.2 kB / 350.3 MB, free: 9.746 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.649e-05/0.3163, allocations: 8 kB / 350.3 MB, free: 9.738 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00462/0.3209, allocations: 6.359 MB / 356.7 MB, free: 2.816 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.3209, allocations: 3.938 kB / 356.7 MB, free: 2.812 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.322, allocations: 0.5008 MB / 357.2 MB, free: 2.281 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001949/0.3222, allocations: 160.3 kB / 357.3 MB, free: 2.105 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.699e-05/0.3223, allocations: 11.98 kB / 357.4 MB, free: 2.094 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002832/0.3226, allocations: 27.98 kB / 357.4 MB, free: 2.066 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001534/0.3228, allocations: 51.92 kB / 357.4 MB, free: 2.016 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.073e-05/0.3228, allocations: 23.92 kB / 357.5 MB, free: 1.992 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004042/0.3232, allocations: 355.1 kB / 357.8 MB, free: 1.645 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3232, allocations: 0 / 357.8 MB, free: 1.645 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007894/0.324, allocations: 175.7 kB / 358 MB, free: 1.473 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.0009945/0.325, allocations: 430.7 kB / 358.4 MB, free: 1.051 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001288/0.3263, allocations: 0.8147 MB / 359.2 MB, free: 188 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3263, allocations: 0 / 359.2 MB, free: 188 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007415/0.3271, allocations: 0.6666 MB / 359.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000582/0.3277, allocations: 113.7 kB / 360 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002007/0.3297, allocations: 0.9647 MB / 361 MB, free: 14.37 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004201/0.3301, allocations: 0.8673 MB / 361.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001945/0.3303, allocations: 48.16 kB / 361.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.303e-05/0.3304, allocations: 35.38 kB / 361.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3304, allocations: 3.938 kB / 361.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of Templates: time 0.01848/0.3489, allocations: 9.502 MB / 371.4 MB, free: 3.863 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)