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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 0.9909/0.9909, allocations: 111.2 MB / 126.7 MB, free: 6.133 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003475/0.0003476, allocations: 8 kB / 158.4 MB, free: 15.08 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05145/0.05184, allocations: 25.16 MB / 183.6 MB, free: 5.879 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.207/0.2589, allocations: 35.84 MB / 219.4 MB, free: 5.828 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/0.2592, allocations: 65.19 kB / 219.5 MB, free: 5.82 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01993/0.2791, allocations: 5.125 MB / 224.6 MB, free: 3.824 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.2792, allocations: 0 / 224.6 MB, free: 3.824 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.966e-05/0.2792, allocations: 7.531 kB / 224.6 MB, free: 3.824 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.00112/0.2804, allocations: 0.5551 MB / 225.2 MB, free: 3.352 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.2804, allocations: 11.47 kB / 225.2 MB, free: 3.352 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.426e-05/0.2805, allocations: 67.64 kB / 225.3 MB, free: 3.301 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.395e-05/0.2806, allocations: 35 kB / 225.3 MB, free: 3.285 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003141/0.2809, allocations: 257.1 kB / 225.6 MB, free: 3.039 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.337e-05/0.281, allocations: 76.5 kB / 225.6 MB, free: 2.973 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.87e-05/0.2811, allocations: 29.23 kB / 225.7 MB, free: 2.969 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006227/0.2817, allocations: 302.2 kB / 225.9 MB, free: 2.848 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.2818, allocations: 0 / 225.9 MB, free: 2.848 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.067e-05/0.2818, allocations: 15.03 kB / 226 MB, free: 2.848 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.2818, allocations: 7.844 kB / 226 MB, free: 2.844 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004685/0.2823, allocations: 189.9 kB / 226.2 MB, free: 2.812 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002234/0.2846, allocations: 1.145 MB / 227.3 MB, free: 2.016 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003885/0.285, allocations: 149 kB / 227.4 MB, free: 1.977 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.285, allocations: 3.344 kB / 227.5 MB, free: 1.977 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003457/0.2854, allocations: 158 kB / 227.6 MB, free: 1.871 MB / 170.7 MB Notification: Performance of pre-optimization done (n=21): time 3.356e-06/0.2854, allocations: 0 / 227.6 MB, free: 1.871 MB / 170.7 MB Notification: Performance of matching and sorting (n=21): time 0.001473/0.2869, allocations: 409.1 kB / 228 MB, free: 1.668 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.813e-05/0.2869, allocations: 106.5 kB / 228.1 MB, free: 1.543 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.000291/0.2872, allocations: 208.4 kB / 228.3 MB, free: 1.422 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.053e-05/0.2873, allocations: 32.89 kB / 228.3 MB, free: 1.391 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.2874, allocations: 235.4 kB / 228.6 MB, free: 1.191 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.828e-05/0.2875, allocations: 65.09 kB / 228.6 MB, free: 1.148 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.863e-05/0.2875, allocations: 6.844 kB / 228.6 MB, free: 1.148 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.583e-05/0.2876, allocations: 319.3 kB / 229 MB, free: 0.832 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001717/0.2878, allocations: 61 kB / 229 MB, free: 0.8203 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002127/0.288, allocations: 123.9 kB / 229.1 MB, free: 0.7422 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001999/0.2882, allocations: 74.2 kB / 229.2 MB, free: 0.7305 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.2882, allocations: 3.688 kB / 229.2 MB, free: 0.7305 MB / 170.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005589/0.2888, allocations: 249.7 kB / 229.5 MB, free: 0.6562 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.2888, allocations: 8 kB / 229.5 MB, free: 0.6523 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.2888, allocations: 0 / 229.5 MB, free: 0.6523 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003399/0.2892, allocations: 61.02 kB / 229.5 MB, free: 0.6289 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003322/0.2895, allocations: 49.06 kB / 229.6 MB, free: 0.6172 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001586/0.2911, allocations: 1.41 MB / 231 MB, free: 15.23 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003522/0.2915, allocations: 29.66 kB / 231 MB, free: 15.22 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.055e-05/0.2916, allocations: 12.61 kB / 231 MB, free: 15.22 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.0002762/0.2918, allocations: 157.6 kB / 231.2 MB, free: 15.09 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.966e-05/0.2919, allocations: 22.33 kB / 231.2 MB, free: 15.08 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.097e-05/0.292, allocations: 27.48 kB / 231.2 MB, free: 15.07 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.292, allocations: 2.625 kB / 231.2 MB, free: 15.07 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.292, allocations: 1.312 kB / 231.2 MB, free: 15.07 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.292, allocations: 0 / 231.2 MB, free: 15.07 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004502/0.2925, allocations: 327.6 kB / 231.5 MB, free: 14.82 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.2925, allocations: 3.953 kB / 231.6 MB, free: 14.82 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003/0.2928, allocations: 41.39 kB / 231.6 MB, free: 14.81 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002769/0.2931, allocations: 52.31 kB / 231.6 MB, free: 14.79 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.454e-05/0.2931, allocations: 5.25 kB / 231.7 MB, free: 14.79 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001561/0.2947, allocations: 1.332 MB / 233 MB, free: 13.48 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.2947, allocations: 1.375 kB / 233 MB, free: 13.48 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009713/0.2957, allocations: 329.5 kB / 233.3 MB, free: 13.22 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001402/0.2959, allocations: 118 kB / 233.4 MB, free: 13.1 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.682e-05/0.2959, allocations: 7.922 kB / 233.4 MB, free: 13.09 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002911/0.2962, allocations: 24.05 kB / 233.5 MB, free: 13.07 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.2964, allocations: 38.81 kB / 233.5 MB, free: 13.04 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.032e-05/0.2964, allocations: 4 kB / 233.5 MB, free: 13.04 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.000205/0.2966, allocations: 158 kB / 233.6 MB, free: 12.91 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.2966, allocations: 0 / 233.6 MB, free: 12.91 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005144/0.2972, allocations: 82.77 kB / 233.7 MB, free: 12.83 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.001333/0.2985, allocations: 0.8775 MB / 234.6 MB, free: 12.01 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0007403/0.2993, allocations: 279.8 kB / 234.9 MB, free: 11.77 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.2993, allocations: 0 / 234.9 MB, free: 11.77 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003992/0.2997, allocations: 187.2 kB / 235.1 MB, free: 11.6 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005855/0.3003, allocations: 62.06 kB / 235.1 MB, free: 11.55 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002204/0.3025, allocations: 1.792 MB / 236.9 MB, free: 9.738 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000423/0.303, allocations: 0.7674 MB / 237.7 MB, free: 8.941 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001721/0.3031, allocations: 86.16 kB / 237.8 MB, free: 8.91 MB / 186.7 MB Notification: Performance of SimCode: time 8.92e-07/0.3032, allocations: 0 / 237.8 MB, free: 8.91 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.549/2.852, allocations: 5.262 MB / 243 MB, free: 3.695 MB / 186.7 MB