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 1.34/1.34, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003936/0.0003939, allocations: 4 kB / 158.4 MB, free: 15.12 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07744/0.07789, allocations: 25.17 MB / 183.5 MB, free: 5.906 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.005461/0.08339, allocations: 2.195 MB / 185.7 MB, free: 3.707 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.002488/0.08593, allocations: 0.6398 MB / 186.4 MB, free: 3.066 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003988/0.08639, allocations: 4 kB / 186.4 MB, free: 3.062 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001656/0.08658, allocations: 35.69 kB / 186.4 MB, free: 3.027 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005615/0.08716, allocations: 119.7 kB / 186.5 MB, free: 2.91 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005986/0.08778, allocations: 71.84 kB / 186.6 MB, free: 2.84 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.000778/0.08858, allocations: 243.5 kB / 186.8 MB, free: 2.602 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003333/0.08894, allocations: 86.28 kB / 186.9 MB, free: 2.52 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003236/0.08928, allocations: 119.6 kB / 187 MB, free: 2.402 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003384/0.08964, allocations: 123.4 kB / 187.1 MB, free: 2.281 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 7.721e-05/0.08974, allocations: 16 kB / 187.2 MB, free: 2.266 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001047/0.08986, allocations: 20 kB / 187.2 MB, free: 2.246 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.08999, allocations: 59.8 kB / 187.2 MB, free: 2.188 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001615/0.09017, allocations: 77.58 kB / 187.3 MB, free: 2.105 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005492/0.09074, allocations: 259.2 kB / 187.6 MB, free: 1.852 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.09077, allocations: 0 / 187.6 MB, free: 1.852 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.09079, allocations: 0 / 187.6 MB, free: 1.852 MB / 154.7 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.09081, allocations: 0 / 187.6 MB, free: 1.852 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.00184/0.09266, allocations: 0.5626 MB / 188.1 MB, free: 1.242 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.921e-05/0.09274, allocations: 8.031 kB / 188.1 MB, free: 1.234 MB / 154.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001741/0.09293, allocations: 66.53 kB / 188.2 MB, free: 1.16 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001722/0.09312, allocations: 35.56 kB / 188.2 MB, free: 1.125 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006113/0.09375, allocations: 259.1 kB / 188.5 MB, free: 0.8281 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001421/0.09392, allocations: 84.05 kB / 188.6 MB, free: 0.7344 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001069/0.09404, allocations: 28 kB / 188.6 MB, free: 0.707 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001077/0.09514, allocations: 297.7 kB / 188.9 MB, free: 412 kB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.16e-05/0.09519, allocations: 0 / 188.9 MB, free: 412 kB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.508e-05/0.09527, allocations: 12 kB / 188.9 MB, free: 400 kB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.916e-05/0.09531, allocations: 11.98 kB / 188.9 MB, free: 388 kB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008515/0.09618, allocations: 190 kB / 189.1 MB, free: 192 kB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003991/0.1002, allocations: 1.139 MB / 190.2 MB, free: 14.96 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006896/0.1009, allocations: 166.5 kB / 190.4 MB, free: 14.79 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.848e-05/0.101, allocations: 0 / 190.4 MB, free: 14.79 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005938/0.1016, allocations: 154.8 kB / 190.5 MB, free: 14.62 MB / 170.7 MB Notification: Performance of pre-optimization done (n=21): time 3.046e-06/0.1016, allocations: 0 / 190.5 MB, free: 14.62 MB / 170.7 MB Notification: Performance of matching and sorting (n=21): time 0.002364/0.104, allocations: 402.6 kB / 190.9 MB, free: 14.2 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/0.1042, allocations: 110.8 kB / 191 MB, free: 14.07 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.0005901/0.1048, allocations: 232.9 kB / 191.3 MB, free: 13.83 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 7.158e-05/0.1049, allocations: 29.7 kB / 191.3 MB, free: 13.79 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002691/0.1052, allocations: 238.5 kB / 191.5 MB, free: 13.56 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001216/0.1053, allocations: 67.14 kB / 191.6 MB, free: 13.49 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.91e-05/0.1054, allocations: 8 kB / 191.6 MB, free: 13.48 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.1055, allocations: 318.8 kB / 191.9 MB, free: 13.16 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003034/0.1059, allocations: 63.97 kB / 192 MB, free: 13.1 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003944/0.1063, allocations: 132.5 kB / 192.1 MB, free: 12.94 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003582/0.1067, allocations: 84.61 kB / 192.2 MB, free: 12.86 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.1067, allocations: 8.031 kB / 192.2 MB, free: 12.85 MB / 170.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001043/0.1078, allocations: 257.2 kB / 192.5 MB, free: 12.59 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.62e-05/0.1078, allocations: 4 kB / 192.5 MB, free: 12.59 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.447e-06/0.1078, allocations: 4 kB / 192.5 MB, free: 12.58 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005264/0.1084, allocations: 60.98 kB / 192.5 MB, free: 12.52 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005359/0.1089, allocations: 59.84 kB / 192.6 MB, free: 12.46 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002626/0.1116, allocations: 1.405 MB / 194 MB, free: 10.92 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006168/0.1122, allocations: 43.95 kB / 194 MB, free: 10.88 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.805e-05/0.1123, allocations: 16 kB / 194 MB, free: 10.86 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.0004236/0.1128, allocations: 162.5 kB / 194.2 MB, free: 10.7 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.454e-05/0.1129, allocations: 23.67 kB / 194.2 MB, free: 10.68 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.988e-05/0.113, allocations: 34.17 kB / 194.3 MB, free: 10.65 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.533e-06/0.113, allocations: 4 kB / 194.3 MB, free: 10.64 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.113, allocations: 0 / 194.3 MB, free: 10.64 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.1131, allocations: 3.984 kB / 194.3 MB, free: 10.64 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007163/0.1138, allocations: 329.2 kB / 194.6 MB, free: 10.27 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.1138, allocations: 0 / 194.6 MB, free: 10.27 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004314/0.1143, allocations: 31.92 kB / 194.6 MB, free: 10.24 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004415/0.1147, allocations: 60.81 kB / 194.7 MB, free: 10.18 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.732e-05/0.1148, allocations: 4 kB / 194.7 MB, free: 10.17 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002388/0.1172, allocations: 1.324 MB / 196 MB, free: 8.711 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.1172, allocations: 0 / 196 MB, free: 8.711 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.1188, allocations: 337.6 kB / 196.3 MB, free: 8.359 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002345/0.1191, allocations: 108.9 kB / 196.4 MB, free: 8.234 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.547e-05/0.1192, allocations: 3.984 kB / 196.4 MB, free: 8.23 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004132/0.1196, allocations: 23.98 kB / 196.5 MB, free: 8.207 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001757/0.1198, allocations: 27.95 kB / 196.5 MB, free: 8.18 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.476e-05/0.1199, allocations: 7.984 kB / 196.5 MB, free: 8.172 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0003236/0.1202, allocations: 160.5 kB / 196.7 MB, free: 8.02 MB / 170.7 MB Notification: Performance of sort global known variables: time 8.12e-07/0.1202, allocations: 0 / 196.7 MB, free: 8.02 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0009685/0.1212, allocations: 87.69 kB / 196.7 MB, free: 7.934 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.002332/0.1236, allocations: 0.8736 MB / 197.6 MB, free: 7.031 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.1249, allocations: 286.5 kB / 197.9 MB, free: 6.738 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.125, allocations: 0 / 197.9 MB, free: 6.738 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005892/0.1256, allocations: 190.6 kB / 198.1 MB, free: 6.539 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008017/0.1264, allocations: 52.83 kB / 198.1 MB, free: 6.488 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002988/0.1294, allocations: 1.056 MB / 199.2 MB, free: 5.348 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005631/0.1301, allocations: 0.7677 MB / 200 MB, free: 4.551 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002958/0.1304, allocations: 83.41 kB / 200 MB, free: 4.469 MB / 170.7 MB Notification: Performance of SimCode: time 1.603e-06/0.1304, allocations: 0 / 200 MB, free: 4.469 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.064/3.195, allocations: 5.223 MB / 205.3 MB, free: 23.6 MB / 170.7 MB