Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 1.02/1.02, allocations: 111.1 MB / 127.3 MB, free: 6.152 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002596/0.0002598, allocations: 4 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0536/0.05388, allocations: 25.16 MB / 184 MB, free: 6.023 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2342/0.2881, allocations: 35.83 MB / 219.9 MB, free: 6.234 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.2885, allocations: 67.22 kB / 219.9 MB, free: 6.227 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02144/0.3099, allocations: 5.126 MB / 225.1 MB, free: 4.227 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.31, allocations: 0 / 225.1 MB, free: 4.227 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.312e-05/0.31, allocations: 11.53 kB / 225.1 MB, free: 4.223 MB / 170.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.001201/0.3112, allocations: 0.5577 MB / 225.6 MB, free: 3.754 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.3113, allocations: 11.53 kB / 225.6 MB, free: 3.754 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001228/0.3114, allocations: 30.5 kB / 225.7 MB, free: 3.738 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003683/0.3118, allocations: 256.6 kB / 225.9 MB, free: 3.492 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.083e-05/0.3119, allocations: 73.09 kB / 226 MB, free: 3.426 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.444e-05/0.312, allocations: 29.56 kB / 226 MB, free: 3.426 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006752/0.3127, allocations: 300.4 kB / 226.3 MB, free: 3.305 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.3127, allocations: 0 / 226.3 MB, free: 3.305 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.873e-05/0.3128, allocations: 14.88 kB / 226.3 MB, free: 3.305 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.3128, allocations: 6.438 kB / 226.3 MB, free: 3.305 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005497/0.3134, allocations: 187.3 kB / 226.5 MB, free: 3.273 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002525/0.3159, allocations: 1.145 MB / 227.7 MB, free: 2.473 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004635/0.3164, allocations: 154 kB / 227.8 MB, free: 2.438 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.836e-05/0.3165, allocations: 0 / 227.8 MB, free: 2.438 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003751/0.3168, allocations: 157.6 kB / 228 MB, free: 2.332 MB / 170.7 MB Notification: Performance of pre-optimization done (n=21): time 1.824e-06/0.3169, allocations: 0 / 228 MB, free: 2.332 MB / 170.7 MB Notification: Performance of matching and sorting (n=21): time 0.001613/0.3185, allocations: 402.4 kB / 228.4 MB, free: 2.133 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.235e-05/0.3186, allocations: 109.9 kB / 228.5 MB, free: 2.008 MB / 170.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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.000338/0.3189, allocations: 239.7 kB / 228.7 MB, free: 1.871 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.777e-05/0.319, allocations: 29.55 kB / 228.7 MB, free: 1.84 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.3191, allocations: 233.4 kB / 229 MB, free: 1.641 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.207e-05/0.3192, allocations: 68.05 kB / 229 MB, free: 1.598 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.803e-05/0.3192, allocations: 3.312 kB / 229 MB, free: 1.598 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.487e-05/0.3193, allocations: 330 kB / 229.4 MB, free: 1.277 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001742/0.3195, allocations: 56.3 kB / 229.4 MB, free: 1.266 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002151/0.3197, allocations: 120.6 kB / 229.5 MB, free: 1.191 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000211/0.3199, allocations: 76.69 kB / 229.6 MB, free: 1.18 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3199, allocations: 0 / 229.6 MB, free: 1.18 MB / 170.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006117/0.3206, allocations: 248 kB / 229.8 MB, free: 1.105 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.3206, allocations: 7.312 kB / 229.9 MB, free: 1.105 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.3206, allocations: 4 kB / 229.9 MB, free: 1.102 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000395/0.321, allocations: 64.52 kB / 229.9 MB, free: 1.074 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003574/0.3214, allocations: 44.7 kB / 230 MB, free: 1.07 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001753/0.3232, allocations: 1.416 MB / 231.4 MB, free: 15.68 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004437/0.3237, allocations: 33.48 kB / 231.4 MB, free: 15.66 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.818e-05/0.3237, allocations: 10.5 kB / 231.4 MB, free: 15.66 MB / 186.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: 6 * 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 (32): * Single equations (assignments): 31 * 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.0003418/0.3241, allocations: 149.9 kB / 231.6 MB, free: 15.54 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.701e-05/0.3241, allocations: 31.17 kB / 231.6 MB, free: 15.52 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.746e-05/0.3242, allocations: 27.45 kB / 231.6 MB, free: 15.51 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.3242, allocations: 3.844 kB / 231.6 MB, free: 15.51 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3242, allocations: 0 / 231.6 MB, free: 15.51 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3242, allocations: 0 / 231.6 MB, free: 15.51 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005055/0.3248, allocations: 319.6 kB / 231.9 MB, free: 15.27 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.3248, allocations: 3.953 kB / 231.9 MB, free: 15.27 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003265/0.3251, allocations: 37.72 kB / 232 MB, free: 15.26 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003155/0.3254, allocations: 52.48 kB / 232 MB, free: 15.24 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.834e-05/0.3255, allocations: 5.328 kB / 232 MB, free: 15.23 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001767/0.3273, allocations: 1.332 MB / 233.4 MB, free: 13.93 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.3273, allocations: 4 kB / 233.4 MB, free: 13.93 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001096/0.3284, allocations: 328.5 kB / 233.7 MB, free: 13.75 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001769/0.3286, allocations: 112.2 kB / 233.8 MB, free: 13.63 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.845e-05/0.3287, allocations: 7.562 kB / 233.8 MB, free: 13.62 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002982/0.329, allocations: 23.8 kB / 233.8 MB, free: 13.61 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/0.3292, allocations: 35.56 kB / 233.9 MB, free: 13.57 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.457e-05/0.3292, allocations: 4 kB / 233.9 MB, free: 13.57 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002395/0.3295, allocations: 170.7 kB / 234 MB, free: 13.43 MB / 186.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.3295, allocations: 0 / 234 MB, free: 13.43 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005698/0.3301, allocations: 79.06 kB / 234.1 MB, free: 13.36 MB / 186.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.0002118/0.3303, allocations: 122.7 kB / 234.2 MB, free: 13.23 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0008141/0.3311, allocations: 281.5 kB / 234.5 MB, free: 13 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.3311, allocations: 0 / 234.5 MB, free: 13 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004243/0.3316, allocations: 190.9 kB / 234.7 MB, free: 12.82 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006585/0.3323, allocations: 59.03 kB / 234.8 MB, free: 12.78 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001703/0.334, allocations: 0.7531 MB / 235.5 MB, free: 12.04 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004647/0.3345, allocations: 0.7677 MB / 236.3 MB, free: 11.24 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.3346, allocations: 19.44 kB / 236.3 MB, free: 11.22 MB / 186.7 MB Notification: Performance of SimCode: time 1.272e-06/0.3346, allocations: 0 / 236.3 MB, free: 11.22 MB / 186.7 MB Notification: Performance of Templates: time 0.009974/0.3446, allocations: 4.101 MB / 240.4 MB, free: 7.156 MB / 186.7 MB