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.ControlledSwitchWithArc.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.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.147/1.147, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003755/0.0003756, allocations: 4 kB / 158.3 MB, free: 15.13 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07225/0.07267, allocations: 25.17 MB / 183.5 MB, free: 5.91 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005745/0.07847, allocations: 2.429 MB / 185.9 MB, free: 3.477 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.00232/0.08084, allocations: 0.6515 MB / 186.6 MB, free: 2.824 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002891/0.08117, allocations: 7.938 kB / 186.6 MB, free: 2.816 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001629/0.08135, allocations: 47.66 kB / 186.7 MB, free: 2.77 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005279/0.08189, allocations: 127.6 kB / 186.8 MB, free: 2.645 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005786/0.08249, allocations: 79.84 kB / 186.9 MB, free: 2.566 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007311/0.08324, allocations: 287.3 kB / 187.1 MB, free: 2.285 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000359/0.08362, allocations: 107.2 kB / 187.2 MB, free: 2.18 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003333/0.08398, allocations: 131.6 kB / 187.4 MB, free: 2.051 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003608/0.08436, allocations: 147.4 kB / 187.5 MB, free: 1.906 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 8.479e-05/0.08446, allocations: 20 kB / 187.5 MB, free: 1.887 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001195/0.0846, allocations: 16 kB / 187.6 MB, free: 1.871 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.08473, allocations: 59.77 kB / 187.6 MB, free: 1.812 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001563/0.08491, allocations: 85.52 kB / 187.7 MB, free: 1.723 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006083/0.08553, allocations: 311.1 kB / 188 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.08556, allocations: 0 / 188 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.08558, allocations: 0 / 188 MB, free: 1.418 MB / 154.7 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.0856, allocations: 0 / 188 MB, free: 1.418 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.001657/0.08727, allocations: 0.6041 MB / 188.6 MB, free: 0.7656 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.08734, allocations: 8.031 kB / 188.6 MB, free: 0.7578 MB / 154.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000126/0.08747, allocations: 74.47 kB / 188.7 MB, free: 0.6758 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.08759, allocations: 39.53 kB / 188.7 MB, free: 0.6367 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004644/0.08807, allocations: 274.9 kB / 189 MB, free: 336 kB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001066/0.08819, allocations: 84 kB / 189.1 MB, free: 236 kB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.457e-05/0.08828, allocations: 28 kB / 189.1 MB, free: 208 kB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000948/0.08923, allocations: 346.6 kB / 189.4 MB, free: 15.84 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.08927, allocations: 3.953 kB / 189.4 MB, free: 15.84 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.11e-05/0.08933, allocations: 15.98 kB / 189.5 MB, free: 15.82 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.628e-05/0.08936, allocations: 8 kB / 189.5 MB, free: 15.82 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008295/0.09019, allocations: 242.1 kB / 189.7 MB, free: 15.58 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003118/0.09333, allocations: 1.395 MB / 191.1 MB, free: 14.08 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000767/0.09413, allocations: 198.6 kB / 191.3 MB, free: 13.88 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.962e-05/0.09417, allocations: 11.94 kB / 191.3 MB, free: 13.87 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000546/0.09473, allocations: 165.8 kB / 191.5 MB, free: 13.68 MB / 170.7 MB Notification: Performance of pre-optimization done (n=19): time 3.116e-06/0.09475, allocations: 0 / 191.5 MB, free: 13.68 MB / 170.7 MB Notification: Performance of matching and sorting (n=19): time 0.001812/0.09657, allocations: 429.7 kB / 191.9 MB, free: 13.24 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.878e-05/0.09667, allocations: 106.8 kB / 192 MB, free: 13.11 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. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004585/0.09714, allocations: 270.9 kB / 192.2 MB, free: 12.84 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 4.037e-05/0.09719, allocations: 33.7 kB / 192.3 MB, free: 12.8 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000203/0.09741, allocations: 258.3 kB / 192.5 MB, free: 12.55 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.909e-05/0.09752, allocations: 67.09 kB / 192.6 MB, free: 12.48 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.237e-05/0.09755, allocations: 8 kB / 192.6 MB, free: 12.47 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.09772, allocations: 322.8 kB / 192.9 MB, free: 12.15 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003365/0.09806, allocations: 83.72 kB / 193 MB, free: 12.07 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000444/0.09852, allocations: 176.1 kB / 193.2 MB, free: 11.85 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000395/0.09893, allocations: 112 kB / 193.3 MB, free: 11.74 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.09896, allocations: 8 kB / 193.3 MB, free: 11.73 MB / 170.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001283/0.1002, allocations: 342.1 kB / 193.6 MB, free: 11.39 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.699e-05/0.1003, allocations: 8 kB / 193.6 MB, free: 11.38 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.1003, allocations: 3.984 kB / 193.6 MB, free: 11.38 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003909/0.1007, allocations: 60.98 kB / 193.7 MB, free: 11.32 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005855/0.1013, allocations: 87.81 kB / 193.8 MB, free: 11.23 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00195/0.1033, allocations: 1.417 MB / 195.2 MB, free: 9.68 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005201/0.1038, allocations: 55.7 kB / 195.3 MB, free: 9.625 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.191e-05/0.1039, allocations: 8 kB / 195.3 MB, free: 9.617 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.0003387/0.1042, allocations: 163.1 kB / 195.4 MB, free: 9.449 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.219e-05/0.1043, allocations: 27.72 kB / 195.5 MB, free: 9.422 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.084e-05/0.1044, allocations: 34.2 kB / 195.5 MB, free: 9.391 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.1044, allocations: 3.938 kB / 195.5 MB, free: 9.387 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.1044, allocations: 0 / 195.5 MB, free: 9.387 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.335e-06/0.1044, allocations: 3.953 kB / 195.5 MB, free: 9.383 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005211/0.105, allocations: 341.3 kB / 195.8 MB, free: 9 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.105, allocations: 0 / 195.8 MB, free: 9 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004884/0.1055, allocations: 63.89 kB / 195.9 MB, free: 8.938 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003097/0.1058, allocations: 56.83 kB / 195.9 MB, free: 8.879 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.145e-05/0.1059, allocations: 3.984 kB / 195.9 MB, free: 8.875 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001677/0.1076, allocations: 1.336 MB / 197.3 MB, free: 7.402 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.776e-06/0.1076, allocations: 3.953 kB / 197.3 MB, free: 7.398 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001219/0.1088, allocations: 353.7 kB / 197.6 MB, free: 7.031 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001848/0.109, allocations: 116.8 kB / 197.7 MB, free: 6.898 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.31e-05/0.1091, allocations: 4 kB / 197.8 MB, free: 6.895 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003453/0.1095, allocations: 28.05 kB / 197.8 MB, free: 6.867 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/0.1096, allocations: 35.89 kB / 197.8 MB, free: 6.832 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.259e-05/0.1097, allocations: 4 kB / 197.8 MB, free: 6.828 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0003006/0.11, allocations: 190 kB / 198 MB, free: 6.641 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.11, allocations: 0 / 198 MB, free: 6.641 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0006517/0.1107, allocations: 83.75 kB / 198.1 MB, free: 6.559 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.001679/0.1124, allocations: 0.897 MB / 199 MB, free: 5.633 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.001136/0.1135, allocations: 346.7 kB / 199.3 MB, free: 5.281 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1136, allocations: 0 / 199.3 MB, free: 5.281 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005489/0.1141, allocations: 202.6 kB / 199.5 MB, free: 5.07 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006013/0.1147, allocations: 49.23 kB / 199.6 MB, free: 5.02 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002288/0.1171, allocations: 1.178 MB / 200.7 MB, free: 3.758 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004352/0.1175, allocations: 0.7757 MB / 201.5 MB, free: 2.949 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000232/0.1178, allocations: 95.41 kB / 201.6 MB, free: 2.855 MB / 170.7 MB Notification: Performance of SimCode: time 1.182e-06/0.1178, allocations: 0 / 201.6 MB, free: 2.855 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.009/3.127, allocations: 5.763 MB / 207.4 MB, free: 22.39 MB / 170.7 MB