Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001133/0.001134, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001452/0.001452, allocations: 194.8 kB / 16.25 MB, free: 6.621 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.865/1.865, allocations: 205.1 MB / 222.1 MB, free: 4.719 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.001494/0.001494, allocations: 47.94 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3095, allocations: 46.63 MB / 324.8 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005508/0.315, allocations: 3.957 MB / 328.8 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002901/0.3179, allocations: 1.337 MB / 330.1 MB, free: 13.71 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004033/0.3184, allocations: 10.78 kB / 330.1 MB, free: 13.71 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009284/0.3194, allocations: 228.6 kB / 330.4 MB, free: 13.57 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006402/0.32, allocations: 230.5 kB / 330.6 MB, free: 13.4 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007353/0.3208, allocations: 231.2 kB / 330.8 MB, free: 13.23 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008097/0.3216, allocations: 0.7132 MB / 331.5 MB, free: 12.8 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000363/0.3219, allocations: 166.7 kB / 331.7 MB, free: 12.71 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003919/0.3223, allocations: 281.8 kB / 332 MB, free: 12.55 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003421/0.3227, allocations: 304 kB / 332.3 MB, free: 12.35 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.277e-05/0.3228, allocations: 50.09 kB / 332.3 MB, free: 12.35 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002802/0.3231, allocations: 90.31 kB / 332.4 MB, free: 12.33 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001656/0.3232, allocations: 148.7 kB / 332.5 MB, free: 12.21 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003877/0.3236, allocations: 298.4 kB / 332.8 MB, free: 12.01 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008077/0.3245, allocations: 0.6983 MB / 333.5 MB, free: 11.36 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/0.3245, allocations: 3.984 kB / 333.5 MB, free: 11.36 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3245, allocations: 0 / 333.5 MB, free: 11.36 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.3245, allocations: 0 / 333.5 MB, free: 11.36 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.001707/0.3262, allocations: 0.9375 MB / 334.5 MB, free: 10.36 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.806e-05/0.3263, allocations: 12.03 kB / 334.5 MB, free: 10.35 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001469/0.3264, allocations: 68.09 kB / 334.6 MB, free: 10.29 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007295/0.3272, allocations: 406.8 kB / 335 MB, free: 9.848 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.162e-05/0.3272, allocations: 29.38 kB / 335 MB, free: 9.82 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.3273, allocations: 52.06 kB / 335 MB, free: 9.77 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007685/0.3281, allocations: 441.5 kB / 335.5 MB, free: 9.316 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.3281, allocations: 0 / 335.5 MB, free: 9.316 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.711e-05/0.3282, allocations: 19.94 kB / 335.5 MB, free: 9.297 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.3282, allocations: 12 kB / 335.5 MB, free: 9.285 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005965/0.3288, allocations: 315.8 kB / 335.8 MB, free: 8.977 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002338/0.3312, allocations: 1.703 MB / 337.5 MB, free: 7.18 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006441/0.3318, allocations: 359.8 kB / 337.9 MB, free: 6.82 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003021/0.3321, allocations: 192.5 kB / 338 MB, free: 6.629 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.913e-05/0.3322, allocations: 4 kB / 338.1 MB, free: 6.625 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004658/0.3327, allocations: 254.5 kB / 338.3 MB, free: 6.352 MB / 270.1 MB Notification: Performance of pre-optimization done (n=40): time 1.733e-06/0.3327, allocations: 4 kB / 338.3 MB, free: 6.348 MB / 270.1 MB Notification: Performance of matching and sorting (n=40): time 0.002058/0.3347, allocations: 1.016 MB / 339.3 MB, free: 5.238 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.507e-05/0.3348, allocations: 187.9 kB / 339.5 MB, free: 5.012 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005503/0.3354, allocations: 0.4979 MB / 340 MB, free: 4.496 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.752e-05/0.3354, allocations: 33.7 kB / 340 MB, free: 4.457 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001832/0.3356, allocations: 252.5 kB / 340.3 MB, free: 4.207 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.958e-05/0.3357, allocations: 130.2 kB / 340.4 MB, free: 4.078 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/0.3359, allocations: 70.14 kB / 340.5 MB, free: 4 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.336, allocations: 358.8 kB / 340.8 MB, free: 3.641 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002432/0.3363, allocations: 128.7 kB / 341 MB, free: 3.516 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003025/0.3366, allocations: 213.3 kB / 341.2 MB, free: 3.273 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004433/0.337, allocations: 265.3 kB / 341.4 MB, free: 3.004 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.337, allocations: 4 kB / 341.4 MB, free: 3 MB / 270.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007601/0.3378, allocations: 484.7 kB / 341.9 MB, free: 2.508 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.3378, allocations: 4 kB / 341.9 MB, free: 2.504 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.3378, allocations: 4 kB / 341.9 MB, free: 2.5 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000461/0.3383, allocations: 163.4 kB / 342.1 MB, free: 2.328 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/0.3385, allocations: 43.91 kB / 342.1 MB, free: 2.285 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005017/0.3435, allocations: 6.647 MB / 348.8 MB, free: 11.09 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00042/0.344, allocations: 55.75 kB / 348.8 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.809e-05/0.344, allocations: 16 kB / 348.8 MB, free: 11.02 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.0002998/0.3443, allocations: 188 kB / 349 MB, free: 10.82 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.098e-05/0.3444, allocations: 55.28 kB / 349.1 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001081/0.3445, allocations: 60.75 kB / 349.1 MB, free: 10.71 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.3445, allocations: 4 kB / 349.1 MB, free: 10.71 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.3446, allocations: 4 kB / 349.1 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.3446, allocations: 7.922 kB / 349.1 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005164/0.3451, allocations: 493.1 kB / 349.6 MB, free: 10.16 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.3451, allocations: 0 / 349.6 MB, free: 10.16 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001338/0.3452, allocations: 27.97 kB / 349.6 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004096/0.3457, allocations: 163.3 kB / 349.8 MB, free: 9.965 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.851e-05/0.3457, allocations: 11.98 kB / 349.8 MB, free: 9.953 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004688/0.3504, allocations: 6.359 MB / 356.2 MB, free: 3.031 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3504, allocations: 3.938 kB / 356.2 MB, free: 3.027 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009611/0.3514, allocations: 0.5047 MB / 356.7 MB, free: 2.492 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001865/0.3516, allocations: 160.4 kB / 356.8 MB, free: 2.316 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.332e-05/0.3517, allocations: 8 kB / 356.8 MB, free: 2.309 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000256/0.3519, allocations: 27.98 kB / 356.9 MB, free: 2.281 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.3521, allocations: 55.92 kB / 356.9 MB, free: 2.227 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.089e-05/0.3521, allocations: 19.92 kB / 357 MB, free: 2.207 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004029/0.3525, allocations: 355.1 kB / 357.3 MB, free: 1.863 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3525, allocations: 3.938 kB / 357.3 MB, free: 1.859 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007799/0.3533, allocations: 175.7 kB / 357.5 MB, free: 1.688 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.001016/0.3543, allocations: 418 kB / 357.9 MB, free: 1.277 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001227/0.3556, allocations: 0.8108 MB / 358.7 MB, free: 424 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3556, allocations: 8.125 kB / 358.7 MB, free: 416 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007035/0.3563, allocations: 0.6588 MB / 359.4 MB, free: 15.69 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005629/0.3569, allocations: 117.8 kB / 359.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00191/0.3588, allocations: 1.167 MB / 360.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004354/0.3592, allocations: 0.8556 MB / 361.5 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002025/0.3594, allocations: 52.16 kB / 361.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.505e-05/0.3595, allocations: 39.38 kB / 361.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3595, allocations: 4 kB / 361.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of Templates: time 0.01528/0.3748, allocations: 9.283 MB / 370.9 MB, free: 4.113 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1)