Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="R1.i|R1.v|R3.i|R3.v|Time",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadModel(Modelica): time 0.9929/0.9929, allocations: 111.2 MB / 126.7 MB, free: 6.117 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002654/0.0002655, allocations: 4 kB / 158.3 MB, free: 15.21 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04493/0.04522, allocations: 25.16 MB / 183.4 MB, free: 6.016 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.003095/0.04836, allocations: 2.059 MB / 185.5 MB, free: 3.953 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.001213/0.04963, allocations: 0.5228 MB / 186 MB, free: 3.43 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001964/0.04986, allocations: 4 kB / 186 MB, free: 3.426 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001086/0.04999, allocations: 31.75 kB / 186 MB, free: 3.395 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003673/0.05037, allocations: 99.7 kB / 186.1 MB, free: 3.297 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003193/0.05072, allocations: 63.86 kB / 186.2 MB, free: 3.234 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.000358/0.0511, allocations: 203.6 kB / 186.4 MB, free: 3.035 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001795/0.05129, allocations: 65.06 kB / 186.5 MB, free: 2.973 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001864/0.05149, allocations: 103.6 kB / 186.6 MB, free: 2.871 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001815/0.05169, allocations: 107.5 kB / 186.7 MB, free: 2.766 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 3.967e-05/0.05175, allocations: 15.94 kB / 186.7 MB, free: 2.75 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.8e-05/0.05181, allocations: 12 kB / 186.7 MB, free: 2.738 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 5.625e-05/0.05187, allocations: 43.83 kB / 186.7 MB, free: 2.695 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 8.212e-05/0.05197, allocations: 69.58 kB / 186.8 MB, free: 2.621 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002912/0.05227, allocations: 207.7 kB / 187 MB, free: 2.418 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.524e-06/0.05228, allocations: 0 / 187 MB, free: 2.418 MB / 154.7 MB Notification: Performance of FrontEnd: time 5.434e-06/0.0523, allocations: 4 kB / 187 MB, free: 2.414 MB / 154.7 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.05232, allocations: 0 / 187 MB, free: 2.414 MB / 154.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008647/0.05319, allocations: 0.5105 MB / 187.5 MB, free: 1.855 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.05324, allocations: 8.031 kB / 187.5 MB, free: 1.848 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.181e-05/0.05333, allocations: 35.62 kB / 187.6 MB, free: 1.812 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003855/0.05373, allocations: 246.8 kB / 187.8 MB, free: 1.531 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.706e-05/0.05377, allocations: 12.44 kB / 187.8 MB, free: 1.52 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.591e-05/0.05383, allocations: 24 kB / 187.8 MB, free: 1.496 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005569/0.0544, allocations: 230.7 kB / 188.1 MB, free: 1.258 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.05443, allocations: 3.938 kB / 188.1 MB, free: 1.254 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.347e-05/0.05447, allocations: 8 kB / 188.1 MB, free: 1.246 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.541e-05/0.0545, allocations: 7.953 kB / 188.1 MB, free: 1.238 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005022/0.05501, allocations: 177.6 kB / 188.3 MB, free: 1.062 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.05684, allocations: 0.9603 MB / 189.2 MB, free: 28 kB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005035/0.05737, allocations: 174.4 kB / 189.4 MB, free: 15.84 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/0.05741, allocations: 0 / 189.4 MB, free: 15.84 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.05745, allocations: 34.56 kB / 189.4 MB, free: 15.8 MB / 170.7 MB Notification: Performance of pre-optimization done (n=18): time 2.323e-06/0.05747, allocations: 4 kB / 189.4 MB, free: 15.8 MB / 170.7 MB Notification: Performance of matching and sorting (n=18): time 0.001501/0.05898, allocations: 0.4962 MB / 189.9 MB, free: 15.25 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/0.05905, allocations: 63.34 kB / 190 MB, free: 15.18 MB / 170.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Analog/Sources.mo:361:5-361:68:writable] Warning: Parameter SineVoltage1.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000356/0.05942, allocations: 217.9 kB / 190.2 MB, free: 14.96 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.351e-05/0.05947, allocations: 29.7 kB / 190.2 MB, free: 14.92 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001511/0.05963, allocations: 214.5 kB / 190.4 MB, free: 14.71 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.993e-05/0.05971, allocations: 59.19 kB / 190.5 MB, free: 14.66 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.464e-05/0.05974, allocations: 4 kB / 190.5 MB, free: 14.65 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.05991, allocations: 318.8 kB / 190.8 MB, free: 14.33 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001988/0.06012, allocations: 59.97 kB / 190.9 MB, free: 14.27 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002327/0.06037, allocations: 103.2 kB / 191 MB, free: 14.16 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002149/0.0606, allocations: 64.44 kB / 191 MB, free: 14.1 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.902e-06/0.06062, allocations: 4 kB / 191 MB, free: 14.09 MB / 170.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007034/0.06133, allocations: 259.5 kB / 191.3 MB, free: 13.83 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.06137, allocations: 4 kB / 191.3 MB, free: 13.82 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.838e-06/0.06139, allocations: 0 / 191.3 MB, free: 13.82 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004178/0.06181, allocations: 85.61 kB / 191.4 MB, free: 13.73 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000165/0.062, allocations: 23.98 kB / 191.4 MB, free: 13.71 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003639/0.06565, allocations: 3.009 MB / 194.4 MB, free: 10.43 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001934/0.06587, allocations: 15.84 kB / 194.4 MB, free: 10.41 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.368e-05/0.06592, allocations: 12.06 kB / 194.4 MB, free: 10.4 MB / 170.7 MB Warning: Assuming fixed start value for the following 1 variables: IdealThyristor1.off:DISCRETE(start = true fixed = true ) "Switching state" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 ($PRE.IdealThyristor1.off,IdealThyristor1.off,IdealGTOThyristor1.off,IdealGTOThyristor1.fire) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002422/0.06617, allocations: 135.3 kB / 194.6 MB, free: 10.26 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.044e-05/0.06625, allocations: 19.72 kB / 194.6 MB, free: 10.24 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.73e-05/0.06632, allocations: 29.86 kB / 194.6 MB, free: 10.21 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.803e-06/0.06634, allocations: 4 kB / 194.6 MB, free: 10.21 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.06635, allocations: 0 / 194.6 MB, free: 10.21 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.858e-06/0.06637, allocations: 3.953 kB / 194.6 MB, free: 10.21 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004768/0.06685, allocations: 297.4 kB / 194.9 MB, free: 9.867 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.433e-06/0.06687, allocations: 4 kB / 194.9 MB, free: 9.863 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.067, allocations: 15.98 kB / 194.9 MB, free: 9.848 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003378/0.06735, allocations: 73.67 kB / 195 MB, free: 9.77 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.06739, allocations: 4 kB / 195 MB, free: 9.766 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003466/0.07087, allocations: 2.928 MB / 197.9 MB, free: 6.57 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.36e-06/0.0709, allocations: 3.938 kB / 197.9 MB, free: 6.566 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007109/0.07162, allocations: 328.9 kB / 198.3 MB, free: 6.223 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001483/0.07179, allocations: 112.8 kB / 198.4 MB, free: 6.094 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.151e-05/0.07184, allocations: 8 kB / 198.4 MB, free: 6.086 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002233/0.07208, allocations: 11.98 kB / 198.4 MB, free: 6.074 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.685e-05/0.07219, allocations: 23.97 kB / 198.4 MB, free: 6.051 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-05/0.07223, allocations: 12.36 kB / 198.4 MB, free: 6.039 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0001929/0.07243, allocations: 155.1 kB / 198.6 MB, free: 5.887 MB / 170.7 MB Notification: Performance of sort global known variables: time 7.62e-07/0.07245, allocations: 0 / 198.6 MB, free: 5.887 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.000654/0.07311, allocations: 79.84 kB / 198.7 MB, free: 5.809 MB / 170.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: 3 (IdealThyristor1.off,IdealGTOThyristor1.off,IdealGTOThyristor1.fire) * Number of discrete states: 1 (IdealThyristor1.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001526/0.07328, allocations: 107.2 kB / 198.8 MB, free: 5.695 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0008609/0.07415, allocations: 427.2 kB / 199.2 MB, free: 5.258 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.461e-06/0.07417, allocations: 0 / 199.2 MB, free: 5.258 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005069/0.07469, allocations: 325.3 kB / 199.5 MB, free: 4.914 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000438/0.07515, allocations: 52.66 kB / 199.5 MB, free: 4.859 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/0.07626, allocations: 0.5491 MB / 200.1 MB, free: 4.277 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004586/0.07674, allocations: 0.7595 MB / 200.9 MB, free: 3.488 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.166e-05/0.07681, allocations: 15.44 kB / 200.9 MB, free: 3.473 MB / 170.7 MB Notification: Performance of SimCode: time 1.515e-06/0.07683, allocations: 0 / 200.9 MB, free: 3.473 MB / 170.7 MB Notification: Performance of Templates: time 0.1194/0.1962, allocations: 4.32 MB / 205.2 MB, free: 23.49 MB / 170.7 MB