Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadModel(Modelica): time 2.263/2.263, allocations: 194.9 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005124/0.0005127, allocations: 8 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1225, allocations: 44.51 MB / 309 MB, free: 372 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4741/0.5966, allocations: 74.84 MB / 383.9 MB, free: 15.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002782/0.597, allocations: 73.66 kB / 383.9 MB, free: 15.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04784/0.6448, allocations: 7.024 MB / 391 MB, free: 14.56 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.9e-06/0.6449, allocations: 0 / 391 MB, free: 14.56 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.529e-05/0.645, allocations: 11.66 kB / 391 MB, free: 14.56 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.0035/0.6485, allocations: 0.7657 MB / 391.8 MB, free: 13.99 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.559e-05/0.6486, allocations: 11.3 kB / 391.8 MB, free: 13.99 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000314/0.6489, allocations: 58.53 kB / 391.8 MB, free: 13.96 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008446/0.6498, allocations: 312.6 kB / 392.1 MB, free: 13.72 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.692e-05/0.6499, allocations: 39.58 kB / 392.2 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.606e-05/0.65, allocations: 39.56 kB / 392.2 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.6511, allocations: 414.3 kB / 392.6 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/0.6511, allocations: 0 / 392.6 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.028e-05/0.6512, allocations: 14.78 kB / 392.6 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.6512, allocations: 15.72 kB / 392.6 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008678/0.6521, allocations: 310 kB / 392.9 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003461/0.6556, allocations: 1.641 MB / 394.6 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008348/0.6564, allocations: 338.2 kB / 394.9 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.581e-05/0.6565, allocations: 8.094 kB / 394.9 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006123/0.6571, allocations: 281.4 kB / 395.2 MB, free: 12.58 MB / 314.7 MB Notification: Performance of pre-optimization done (n=38): time 3.767e-06/0.6572, allocations: 0 / 395.2 MB, free: 12.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=38): time 0.003367/0.6605, allocations: 1.129 MB / 396.3 MB, free: 11.96 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.309e-05/0.6607, allocations: 216.5 kB / 396.5 MB, free: 11.71 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004727/0.6611, allocations: 328.2 kB / 396.9 MB, free: 11.6 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.764e-05/0.6612, allocations: 37.11 kB / 396.9 MB, free: 11.57 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001644/0.6614, allocations: 217.8 kB / 397.1 MB, free: 11.44 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.6615, allocations: 113.8 kB / 397.2 MB, free: 11.37 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.875e-05/0.6616, allocations: 7.562 kB / 397.2 MB, free: 11.37 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.6617, allocations: 345.7 kB / 397.6 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003699/0.6621, allocations: 122.8 kB / 397.7 MB, free: 11.05 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00041/0.6625, allocations: 190.7 kB / 397.9 MB, free: 10.99 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003913/0.6629, allocations: 177.1 kB / 398 MB, free: 10.92 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.379e-06/0.6629, allocations: 0 / 398 MB, free: 10.92 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001273/0.6642, allocations: 0.5208 MB / 398.6 MB, free: 10.76 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.038e-05/0.6643, allocations: 63.12 kB / 398.6 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.6643, allocations: 0 / 398.6 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00121/0.6656, allocations: 154.8 kB / 398.8 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000506/0.6661, allocations: 39.03 kB / 398.8 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006438/0.6726, allocations: 5.991 MB / 404.8 MB, free: 5.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007016/0.6733, allocations: 61.69 kB / 404.9 MB, free: 5.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.953e-05/0.6734, allocations: 11.94 kB / 404.9 MB, free: 5.23 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition2,$whenCondition1,$PRE.IdealThyristor1.off,IdealThyristor1.off,IdealGTOThyristor1.off,$PRE.booleanStep1.y,booleanStep1.y,$PRE.booleanStep1.nextTime,booleanStep1.nextTime,$PRE.booleanStep1.index,booleanStep1.index,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003961/0.6738, allocations: 196.1 kB / 405.1 MB, free: 5.082 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001251/0.674, allocations: 40.44 kB / 405.1 MB, free: 5.062 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001161/0.6741, allocations: 44.98 kB / 405.1 MB, free: 5.051 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.146e-06/0.6741, allocations: 7.594 kB / 405.2 MB, free: 5.051 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.6741, allocations: 7.953 kB / 405.2 MB, free: 5.043 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.6741, allocations: 5.312 kB / 405.2 MB, free: 5.039 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006804/0.6748, allocations: 439.9 kB / 405.6 MB, free: 4.844 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.6749, allocations: 4 kB / 405.6 MB, free: 4.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002344/0.6751, allocations: 24.55 kB / 405.6 MB, free: 4.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007172/0.6758, allocations: 156.9 kB / 405.8 MB, free: 4.805 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.746e-05/0.6759, allocations: 10.69 kB / 405.8 MB, free: 4.801 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006968/0.6829, allocations: 5.839 MB / 411.6 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.6829, allocations: 0 / 411.6 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/0.6845, allocations: 0.5489 MB / 412.2 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003497/0.6849, allocations: 142.2 kB / 412.3 MB, free: 15.26 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/0.6851, allocations: 11.8 kB / 412.3 MB, free: 15.26 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005035/0.6856, allocations: 38.34 kB / 412.4 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003192/0.6859, allocations: 61.44 kB / 412.4 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.161e-05/0.686, allocations: 11.5 kB / 412.4 MB, free: 15.25 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004158/0.6864, allocations: 231.2 kB / 412.7 MB, free: 15.17 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.6864, allocations: 0 / 412.7 MB, free: 15.17 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001156/0.6876, allocations: 164.2 kB / 412.8 MB, free: 15.16 MB / 330.7 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,IdealGTOThyristor1.off,booleanStep1.y,booleanStep1.nextTime,booleanStep1.index,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,booleanPulse.pulsStart) * Number of discrete states: 6 (IdealThyristor1.off,booleanStep1.y,booleanStep1.nextTime,booleanStep1.index,$whenCondition1,IdealThyristor2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003304/0.6879, allocations: 140.7 kB / 413 MB, free: 15.05 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001743/0.6897, allocations: 0.9117 MB / 413.9 MB, free: 14.46 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.6897, allocations: 0 / 413.9 MB, free: 14.46 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001117/0.6909, allocations: 0.72 MB / 414.6 MB, free: 13.93 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006842/0.6916, allocations: 70.25 kB / 414.7 MB, free: 13.93 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/0.6942, allocations: 0.9619 MB / 415.6 MB, free: 13.44 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004964/0.6947, allocations: 0.8254 MB / 416.4 MB, free: 12.73 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002766/0.695, allocations: 29.38 kB / 416.5 MB, free: 12.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.687e-05/0.6951, allocations: 23.03 kB / 416.5 MB, free: 12.72 MB / 330.7 MB Notification: Performance of SimCode: time 1.323e-06/0.6951, allocations: 4 kB / 416.5 MB, free: 12.71 MB / 330.7 MB Notification: Performance of Templates: time 0.02014/0.7153, allocations: 7.07 MB / 423.6 MB, free: 9.789 MB / 330.7 MB