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.ControlledSwitchWithArc.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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadModel(Modelica): time 1.013/1.013, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002574/0.0002576, allocations: 4 kB / 158.2 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04436/0.04464, allocations: 25.18 MB / 183.4 MB, free: 6.012 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003589/0.04827, allocations: 2.433 MB / 185.9 MB, free: 3.574 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.001348/0.04966, allocations: 0.6554 MB / 186.5 MB, free: 2.918 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000188/0.04988, allocations: 4 kB / 186.5 MB, free: 2.914 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001038/0.05002, allocations: 47.67 kB / 186.6 MB, free: 2.867 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003052/0.05033, allocations: 119.6 kB / 186.7 MB, free: 2.75 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003463/0.05069, allocations: 87.84 kB / 186.8 MB, free: 2.664 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004366/0.05114, allocations: 279.4 kB / 187 MB, free: 2.391 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002503/0.05141, allocations: 106.9 kB / 187.1 MB, free: 2.285 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000243/0.05167, allocations: 139.4 kB / 187.3 MB, free: 2.148 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002344/0.05192, allocations: 139.4 kB / 187.4 MB, free: 2.012 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 5.327e-05/0.05199, allocations: 20 kB / 187.4 MB, free: 1.992 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.488e-05/0.05206, allocations: 16 kB / 187.4 MB, free: 1.977 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 8.278e-05/0.05216, allocations: 67.73 kB / 187.5 MB, free: 1.91 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000112/0.05228, allocations: 93.52 kB / 187.6 MB, free: 1.812 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003977/0.05269, allocations: 299.4 kB / 187.9 MB, free: 1.52 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.05271, allocations: 0 / 187.9 MB, free: 1.52 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.108e-06/0.05272, allocations: 0 / 187.9 MB, free: 1.52 MB / 154.7 MB Notification: Performance of Transformations before backend: time 7.843e-06/0.05274, allocations: 0 / 187.9 MB, free: 1.52 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001142/0.05389, allocations: 0.604 MB / 188.5 MB, free: 0.8672 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.05394, allocations: 8.031 kB / 188.5 MB, free: 0.8594 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.05405, allocations: 39.53 kB / 188.5 MB, free: 0.8203 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004259/0.05449, allocations: 270.9 kB / 188.8 MB, free: 0.5156 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001164/0.05462, allocations: 96.03 kB / 188.9 MB, free: 416 kB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.201e-05/0.05471, allocations: 28 kB / 188.9 MB, free: 388 kB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008173/0.05554, allocations: 346.5 kB / 189.3 MB, free: 20 kB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.05557, allocations: 0 / 189.3 MB, free: 20 kB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.711e-05/0.05563, allocations: 19.95 kB / 189.3 MB, free: 0 / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.05568, allocations: 8.047 kB / 189.3 MB, free: 15.99 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006806/0.05637, allocations: 238.1 kB / 189.5 MB, free: 15.75 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002629/0.05901, allocations: 1.399 MB / 190.9 MB, free: 14.25 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006375/0.05968, allocations: 202.6 kB / 191.1 MB, free: 14.05 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.831e-05/0.05973, allocations: 11.92 kB / 191.1 MB, free: 14.04 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004222/0.06016, allocations: 168.5 kB / 191.3 MB, free: 13.85 MB / 170.7 MB Notification: Performance of pre-optimization done (n=19): time 5.728e-06/0.06019, allocations: 0 / 191.3 MB, free: 13.85 MB / 170.7 MB Notification: Performance of matching and sorting (n=19): time 0.001374/0.06157, allocations: 423.3 kB / 191.7 MB, free: 13.41 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.114e-05/0.06168, allocations: 110.8 kB / 191.8 MB, free: 13.28 MB / 170.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Analog/Basic.mo:68:3-69:40:writable] Warning: Parameter resistor2.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Analog/Basic.mo:68:3-69:40:writable] Warning: Parameter resistor1.R 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.0004102/0.06211, allocations: 274.9 kB / 192.1 MB, free: 13 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.77e-05/0.06216, allocations: 29.7 kB / 192.1 MB, free: 12.97 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002063/0.06238, allocations: 262.2 kB / 192.4 MB, free: 12.71 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.926e-05/0.06247, allocations: 71.09 kB / 192.5 MB, free: 12.64 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.765e-05/0.0625, allocations: 4 kB / 192.5 MB, free: 12.64 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.06268, allocations: 322.8 kB / 192.8 MB, free: 12.31 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002769/0.06297, allocations: 87.7 kB / 192.9 MB, free: 12.23 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003648/0.06335, allocations: 184.1 kB / 193 MB, free: 12 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003166/0.06368, allocations: 100 kB / 193.1 MB, free: 11.91 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.519e-06/0.06371, allocations: 3.953 kB / 193.1 MB, free: 11.9 MB / 170.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001054/0.06477, allocations: 349.9 kB / 193.5 MB, free: 11.55 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.06481, allocations: 8.312 kB / 193.5 MB, free: 11.54 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.06483, allocations: 8 kB / 193.5 MB, free: 11.54 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003097/0.06515, allocations: 52.81 kB / 193.5 MB, free: 11.48 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003901/0.06556, allocations: 87.89 kB / 193.6 MB, free: 11.39 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001829/0.06741, allocations: 1.413 MB / 195 MB, free: 9.852 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003595/0.06779, allocations: 51.62 kB / 195.1 MB, free: 9.801 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.287e-05/0.06784, allocations: 12.17 kB / 195.1 MB, free: 9.789 MB / 170.7 MB Warning: Assuming fixed start value for the following 5 variables: switch2.quenched:DISCRETE(fixed = true protected = true ) type: Boolean switch2.tSwitch:DISCRETE(unit = "s" fixed = true protected = true ) type: Real switch2.off:DISCRETE(fixed = true protected = true ) type: Boolean inductor1.i:VARIABLE(unit = "A" fixed = true ) "Current flowing from pin p to pin n" type: Real inductor2.i:VARIABLE(unit = "A" fixed = true ) "Current flowing from pin p to pin n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.switch2.off,switch2.off,$PRE.switch2.tSwitch,switch2.tSwitch,$PRE.switch2.quenched,switch2.quenched) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002967/0.06815, allocations: 159.1 kB / 195.3 MB, free: 9.625 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.971e-05/0.06822, allocations: 27.72 kB / 195.3 MB, free: 9.598 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.319e-05/0.06829, allocations: 30.2 kB / 195.3 MB, free: 9.57 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.782e-06/0.06831, allocations: 0 / 195.3 MB, free: 9.57 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.816e-06/0.06833, allocations: 8 kB / 195.3 MB, free: 9.562 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.454e-06/0.06834, allocations: 0 / 195.3 MB, free: 9.562 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004803/0.06883, allocations: 345.2 kB / 195.7 MB, free: 9.176 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.821e-06/0.06885, allocations: 8 kB / 195.7 MB, free: 9.168 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003338/0.06919, allocations: 55.95 kB / 195.7 MB, free: 9.113 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002627/0.06947, allocations: 60.75 kB / 195.8 MB, free: 9.051 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.117e-05/0.06951, allocations: 0 / 195.8 MB, free: 9.051 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001631/0.07115, allocations: 1.328 MB / 197.1 MB, free: 7.586 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.504e-06/0.07118, allocations: 7.891 kB / 197.1 MB, free: 7.578 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000971/0.07216, allocations: 362.9 kB / 197.5 MB, free: 7.203 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001737/0.07235, allocations: 120.8 kB / 197.6 MB, free: 7.066 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.532e-05/0.07243, allocations: 8.062 kB / 197.6 MB, free: 7.059 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002357/0.07268, allocations: 23.97 kB / 197.6 MB, free: 7.035 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/0.07281, allocations: 31.91 kB / 197.7 MB, free: 7.004 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.426e-05/0.07285, allocations: 11.98 kB / 197.7 MB, free: 6.992 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0002593/0.07312, allocations: 186 kB / 197.8 MB, free: 6.809 MB / 170.7 MB Notification: Performance of sort global known variables: time 7.48e-07/0.07314, allocations: 4 kB / 197.9 MB, free: 6.805 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0005325/0.07368, allocations: 79.84 kB / 197.9 MB, free: 6.727 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 4 ($whenCondition1,switch2.off,switch2.tSwitch,switch2.quenched) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001533/0.07384, allocations: 111.2 kB / 198 MB, free: 6.609 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0008928/0.07475, allocations: 341.6 kB / 198.4 MB, free: 6.262 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.225e-06/0.07477, allocations: 0 / 198.4 MB, free: 6.262 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004494/0.07523, allocations: 210.6 kB / 198.6 MB, free: 6.043 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004057/0.07565, allocations: 49.19 kB / 198.6 MB, free: 5.992 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00148/0.07715, allocations: 0.8242 MB / 199.5 MB, free: 5.137 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004838/0.07766, allocations: 0.7796 MB / 200.2 MB, free: 4.324 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.644e-05/0.07777, allocations: 23.44 kB / 200.3 MB, free: 4.301 MB / 170.7 MB Notification: Performance of SimCode: time 1.366e-06/0.07778, allocations: 0 / 200.3 MB, free: 4.301 MB / 170.7 MB Notification: Performance of Templates: time 0.1225/0.2003, allocations: 4.483 MB / 204.7 MB, free: 23.56 MB / 170.7 MB