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.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadModel(Modelica): time 0.9599/0.9599, allocations: 111.1 MB / 126.7 MB, free: 6.129 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002561/0.0002563, allocations: 4 kB / 158.3 MB, free: 15.21 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04555/0.04583, allocations: 25.17 MB / 183.4 MB, free: 5.996 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003215/0.04909, allocations: 2.187 MB / 185.6 MB, free: 3.805 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.001304/0.05043, allocations: 0.6434 MB / 186.3 MB, free: 3.16 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.05061, allocations: 4 kB / 186.3 MB, free: 3.156 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 9.269e-05/0.05072, allocations: 35.75 kB / 186.3 MB, free: 3.121 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002902/0.05102, allocations: 115.7 kB / 186.4 MB, free: 3.008 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003431/0.05138, allocations: 79.78 kB / 186.5 MB, free: 2.93 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003895/0.05178, allocations: 243.5 kB / 186.7 MB, free: 2.691 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002139/0.05201, allocations: 86.61 kB / 186.8 MB, free: 2.609 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001575/0.05218, allocations: 115.6 kB / 186.9 MB, free: 2.496 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000209/0.05241, allocations: 123.5 kB / 187 MB, free: 2.375 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 4.889e-05/0.05247, allocations: 16 kB / 187.1 MB, free: 2.359 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.665e-05/0.05254, allocations: 16 kB / 187.1 MB, free: 2.344 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 7.329e-05/0.05262, allocations: 63.75 kB / 187.1 MB, free: 2.281 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 9.704e-05/0.05273, allocations: 77.58 kB / 187.2 MB, free: 2.199 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003469/0.05309, allocations: 259.2 kB / 187.5 MB, free: 1.945 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.221e-06/0.05311, allocations: 0 / 187.5 MB, free: 1.945 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.296e-06/0.05312, allocations: 0 / 187.5 MB, free: 1.945 MB / 154.7 MB Notification: Performance of Transformations before backend: time 7.028e-06/0.05314, allocations: 0 / 187.5 MB, free: 1.945 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001103/0.05425, allocations: 0.5549 MB / 188 MB, free: 1.344 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.0543, allocations: 8.031 kB / 188 MB, free: 1.336 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.438e-05/0.05441, allocations: 31.62 kB / 188.1 MB, free: 1.305 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004141/0.05483, allocations: 267.1 kB / 188.3 MB, free: 1 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/0.05495, allocations: 84 kB / 188.4 MB, free: 0.9062 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.256e-05/0.05503, allocations: 28 kB / 188.4 MB, free: 0.8789 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006595/0.05571, allocations: 301.6 kB / 188.7 MB, free: 0.5703 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.05574, allocations: 0 / 188.7 MB, free: 0.5703 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.662e-05/0.0558, allocations: 23.92 kB / 188.8 MB, free: 0.5469 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.05583, allocations: 8 kB / 188.8 MB, free: 0.5391 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005088/0.05635, allocations: 186.1 kB / 188.9 MB, free: 360 kB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002322/0.05868, allocations: 1.147 MB / 190.1 MB, free: 15.12 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004178/0.05913, allocations: 154.5 kB / 190.2 MB, free: 14.96 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/0.05917, allocations: 8 kB / 190.2 MB, free: 14.95 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000375/0.05956, allocations: 150.8 kB / 190.4 MB, free: 14.79 MB / 170.7 MB Notification: Performance of pre-optimization done (n=21): time 3.531e-06/0.05958, allocations: 0 / 190.4 MB, free: 14.79 MB / 170.7 MB Notification: Performance of matching and sorting (n=21): time 0.001325/0.06091, allocations: 402.4 kB / 190.8 MB, free: 14.37 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.704e-05/0.06102, allocations: 106.8 kB / 190.9 MB, free: 14.24 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. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Blocks/Sources.mo:2660:7-2661:28:writable] Warning: Parameter booleanPulse.period 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.0003632/0.0614, allocations: 236.9 kB / 191.1 MB, free: 13.99 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.992e-05/0.06145, allocations: 33.7 kB / 191.2 MB, free: 13.95 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001804/0.06165, allocations: 234.6 kB / 191.4 MB, free: 13.72 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.346e-05/0.06174, allocations: 67.09 kB / 191.4 MB, free: 13.66 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.802e-05/0.06177, allocations: 4 kB / 191.5 MB, free: 13.65 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.06197, allocations: 322.8 kB / 191.8 MB, free: 13.33 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001788/0.06216, allocations: 59.97 kB / 191.8 MB, free: 13.27 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002519/0.06243, allocations: 136.5 kB / 192 MB, free: 13.11 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002119/0.06266, allocations: 80.66 kB / 192 MB, free: 13.02 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.524e-06/0.06268, allocations: 4.031 kB / 192 MB, free: 13.02 MB / 170.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006448/0.06333, allocations: 261.2 kB / 192.3 MB, free: 12.76 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.06337, allocations: 8 kB / 192.3 MB, free: 12.75 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.06339, allocations: 3.984 kB / 192.3 MB, free: 12.75 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003263/0.06373, allocations: 57 kB / 192.4 MB, free: 12.69 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00027/0.06402, allocations: 59.91 kB / 192.4 MB, free: 12.63 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001838/0.06588, allocations: 1.401 MB / 193.8 MB, free: 11.09 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000325/0.06623, allocations: 43.86 kB / 193.9 MB, free: 11.05 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.206e-05/0.06628, allocations: 16 kB / 193.9 MB, free: 11.04 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: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$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 (34): * Single equations (assignments): 33 * 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.000317/0.06661, allocations: 158.8 kB / 194 MB, free: 10.87 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.577e-05/0.06668, allocations: 27.67 kB / 194.1 MB, free: 10.84 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.078e-05/0.06675, allocations: 30.17 kB / 194.1 MB, free: 10.82 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.155e-06/0.06677, allocations: 8 kB / 194.1 MB, free: 10.81 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.06679, allocations: 4 kB / 194.1 MB, free: 10.81 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.0668, allocations: 0 / 194.1 MB, free: 10.81 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004665/0.06728, allocations: 321.3 kB / 194.4 MB, free: 10.45 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.945e-06/0.0673, allocations: 3.953 kB / 194.4 MB, free: 10.44 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002257/0.06753, allocations: 35.92 kB / 194.5 MB, free: 10.41 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002626/0.06781, allocations: 56.81 kB / 194.5 MB, free: 10.35 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.646e-05/0.06786, allocations: 7.984 kB / 194.5 MB, free: 10.34 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001633/0.0695, allocations: 1.32 MB / 195.8 MB, free: 8.883 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.252e-06/0.06952, allocations: 0 / 195.8 MB, free: 8.883 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009192/0.07045, allocations: 333.7 kB / 196.2 MB, free: 8.535 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001635/0.07064, allocations: 108.9 kB / 196.3 MB, free: 8.41 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.069e-05/0.0707, allocations: 4 kB / 196.3 MB, free: 8.406 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000236/0.07095, allocations: 23.97 kB / 196.3 MB, free: 8.383 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/0.07109, allocations: 31.94 kB / 196.3 MB, free: 8.352 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.035e-05/0.07112, allocations: 7.938 kB / 196.3 MB, free: 8.344 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0002125/0.07134, allocations: 168.5 kB / 196.5 MB, free: 8.184 MB / 170.7 MB Notification: Performance of sort global known variables: time 8.2e-07/0.07136, allocations: 0 / 196.5 MB, free: 8.184 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0005119/0.07188, allocations: 83.69 kB / 196.6 MB, free: 8.102 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulsStart,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 (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001527/0.07204, allocations: 103.2 kB / 196.7 MB, free: 7.992 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0007275/0.07278, allocations: 290.5 kB / 197 MB, free: 7.695 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.534e-06/0.07281, allocations: 448 / 197 MB, free: 7.695 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003824/0.0732, allocations: 198.6 kB / 197.2 MB, free: 7.488 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004094/0.07363, allocations: 47.11 kB / 197.2 MB, free: 7.445 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001456/0.0751, allocations: 0.7565 MB / 198 MB, free: 6.656 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004722/0.0756, allocations: 0.7677 MB / 198.7 MB, free: 5.859 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.397e-05/0.07571, allocations: 27.44 kB / 198.8 MB, free: 5.832 MB / 170.7 MB Notification: Performance of SimCode: time 1.94e-06/0.07572, allocations: 0 / 198.8 MB, free: 5.832 MB / 170.7 MB Notification: Performance of Templates: time 0.008204/0.08393, allocations: 4.06 MB / 202.8 MB, free: 1.77 MB / 170.7 MB