Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.82/1.82, allocations: 171.1 MB / 186.1 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003358/0.0003359, allocations: 8 kB / 233.4 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08269/0.08305, allocations: 38.77 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.352/0.4351, allocations: 69.45 MB / 341.6 MB, free: 3.438 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000261/0.4354, allocations: 70 kB / 341.7 MB, free: 3.402 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02677/0.4622, allocations: 6.017 MB / 347.7 MB, free: 14.27 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.235e-06/0.4622, allocations: 0 / 347.7 MB, free: 14.27 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.56e-05/0.4623, allocations: 8 kB / 347.7 MB, free: 14.26 MB / 282.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.00148/0.4638, allocations: 0.6148 MB / 348.3 MB, free: 13.62 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.4638, allocations: 8.031 kB / 348.3 MB, free: 13.61 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000118/0.4639, allocations: 73.66 kB / 348.4 MB, free: 13.55 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001121/0.4641, allocations: 43.53 kB / 348.4 MB, free: 13.51 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004269/0.4645, allocations: 269.3 kB / 348.7 MB, free: 13.23 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.4646, allocations: 78.44 kB / 348.8 MB, free: 13.15 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.651e-05/0.4647, allocations: 31.38 kB / 348.8 MB, free: 13.13 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009334/0.4657, allocations: 339.6 kB / 349.1 MB, free: 12.87 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.4657, allocations: 3.938 kB / 349.1 MB, free: 12.86 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.912e-05/0.4658, allocations: 13.69 kB / 349.1 MB, free: 12.86 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/0.4658, allocations: 8 kB / 349.1 MB, free: 12.85 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008276/0.4666, allocations: 238.1 kB / 349.4 MB, free: 12.69 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003826/0.4705, allocations: 1.42 MB / 350.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009545/0.4715, allocations: 198.3 kB / 351 MB, free: 11.22 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.291e-05/0.4715, allocations: 0 / 351 MB, free: 11.22 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006454/0.4722, allocations: 166.2 kB / 351.1 MB, free: 11.06 MB / 282.7 MB Notification: Performance of pre-optimization done (n=19): time 2.394e-06/0.4722, allocations: 0 / 351.1 MB, free: 11.06 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.002613/0.4748, allocations: 449.3 kB / 351.6 MB, free: 10.66 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.475, allocations: 114.8 kB / 351.7 MB, free: 10.53 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004856/0.4755, allocations: 227.7 kB / 351.9 MB, free: 10.34 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.445e-05/0.4756, allocations: 29.27 kB / 352 MB, free: 10.31 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002326/0.4758, allocations: 209.1 kB / 352.2 MB, free: 10.13 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.4759, allocations: 67.78 kB / 352.2 MB, free: 10.08 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.651e-05/0.476, allocations: 3.625 kB / 352.2 MB, free: 10.08 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002129/0.4762, allocations: 337.4 kB / 352.6 MB, free: 9.75 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004429/0.4767, allocations: 85.83 kB / 352.6 MB, free: 9.688 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005485/0.4772, allocations: 170.7 kB / 352.8 MB, free: 9.516 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004679/0.4777, allocations: 99.03 kB / 352.9 MB, free: 9.453 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.4777, allocations: 0 / 352.9 MB, free: 9.453 MB / 282.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001321/0.4791, allocations: 320 kB / 353.2 MB, free: 9.199 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.591e-05/0.4791, allocations: 4 kB / 353.2 MB, free: 9.195 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.4791, allocations: 4 kB / 353.2 MB, free: 9.191 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004849/0.4796, allocations: 60.36 kB / 353.3 MB, free: 9.137 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006965/0.4803, allocations: 79.08 kB / 353.4 MB, free: 9.062 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002371/0.4827, allocations: 1.405 MB / 354.8 MB, free: 7.582 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006651/0.4835, allocations: 54.84 kB / 354.8 MB, free: 7.531 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.355e-05/0.4835, allocations: 10.94 kB / 354.8 MB, free: 7.523 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (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.0003187/0.4839, allocations: 145.2 kB / 355 MB, free: 7.391 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.503e-05/0.4839, allocations: 27.67 kB / 355 MB, free: 7.363 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.942e-05/0.4841, allocations: 37.55 kB / 355 MB, free: 7.34 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.4841, allocations: 0 / 355 MB, free: 7.34 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.4841, allocations: 8 kB / 355 MB, free: 7.332 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.4841, allocations: 11.86 kB / 355.1 MB, free: 7.32 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006348/0.4848, allocations: 341.1 kB / 355.4 MB, free: 6.996 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.4848, allocations: 0 / 355.4 MB, free: 6.996 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000603/0.4854, allocations: 55.95 kB / 355.4 MB, free: 6.941 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003949/0.4858, allocations: 58.62 kB / 355.5 MB, free: 6.891 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.365e-05/0.4859, allocations: 7.438 kB / 355.5 MB, free: 6.887 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002143/0.488, allocations: 1.331 MB / 356.8 MB, free: 5.484 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.4881, allocations: 0 / 356.8 MB, free: 5.484 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001858/0.4899, allocations: 385.5 kB / 357.2 MB, free: 5.164 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000224/0.4902, allocations: 114.1 kB / 357.3 MB, free: 5.043 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.962e-05/0.4903, allocations: 7.984 kB / 357.3 MB, free: 5.035 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004642/0.4908, allocations: 22.98 kB / 357.4 MB, free: 5.016 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001674/0.491, allocations: 35.33 kB / 357.4 MB, free: 4.988 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.345e-05/0.491, allocations: 7.984 kB / 357.4 MB, free: 4.98 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003711/0.4914, allocations: 179.3 kB / 357.6 MB, free: 4.836 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.4914, allocations: 0 / 357.6 MB, free: 4.836 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009286/0.4924, allocations: 95.3 kB / 357.7 MB, free: 4.75 MB / 282.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.002528/0.4949, allocations: 0.931 MB / 358.6 MB, free: 3.871 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001438/0.4964, allocations: 334.4 kB / 358.9 MB, free: 3.586 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.4964, allocations: 0 / 358.9 MB, free: 3.586 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007201/0.4971, allocations: 208.9 kB / 359.1 MB, free: 3.395 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000513/0.4977, allocations: 37.8 kB / 359.2 MB, free: 3.371 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007181/0.5049, allocations: 3.161 MB / 362.3 MB, free: 360 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005699/0.5055, allocations: 0.7832 MB / 363.1 MB, free: 15.54 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002801/0.5058, allocations: 26.28 kB / 363.1 MB, free: 15.51 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002928/0.5061, allocations: 91.47 kB / 363.2 MB, free: 15.48 MB / 298.7 MB Notification: Performance of SimCode: time 1.553e-06/0.5061, allocations: 0 / 363.2 MB, free: 15.48 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05765/0.5638, allocations: 5.395 MB / 368.6 MB, free: 10.16 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003288/0.5642, allocations: 223.7 kB / 368.8 MB, free: 9.91 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.532/3.097, allocations: 0 / 368.8 MB, free: 9.91 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat