Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.143/2.143, allocations: 194.9 MB / 211.1 MB, free: 8.559 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005497/0.0005498, allocations: 8 kB / 264.1 MB, free: 3.477 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3666/0.3672, allocations: 44.5 MB / 308.6 MB, free: 12.78 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1575/0.5247, allocations: 74.49 MB / 383.1 MB, free: 2.188 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002956/0.5251, allocations: 67.97 kB / 383.1 MB, free: 2.121 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02889/0.554, allocations: 6.102 MB / 389.2 MB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.554, allocations: 0 / 389.2 MB, free: 11.98 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.417e-05/0.5541, allocations: 4.219 kB / 389.2 MB, free: 11.98 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001524/0.5556, allocations: 0.6014 MB / 389.8 MB, free: 11.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.54e-05/0.5557, allocations: 12.03 kB / 389.8 MB, free: 11.31 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001378/0.5558, allocations: 70.53 kB / 389.9 MB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.556, allocations: 51.81 kB / 390 MB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004585/0.5564, allocations: 251.7 kB / 390.2 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001218/0.5566, allocations: 80.06 kB / 390.3 MB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.481e-05/0.5567, allocations: 36 kB / 390.3 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/0.5577, allocations: 338.7 kB / 390.6 MB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.715e-05/0.5577, allocations: 0 / 390.6 MB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.325e-05/0.5578, allocations: 12 kB / 390.7 MB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.941e-05/0.5578, allocations: 11.94 kB / 390.7 MB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007278/0.5586, allocations: 230.4 kB / 390.9 MB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00319/0.5618, allocations: 1.395 MB / 392.3 MB, free: 8.676 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000539/0.5624, allocations: 174.5 kB / 392.5 MB, free: 8.496 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.737e-05/0.5624, allocations: 4 kB / 392.5 MB, free: 8.492 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004818/0.5629, allocations: 155.6 kB / 392.6 MB, free: 8.316 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 3.176e-06/0.5629, allocations: 0 / 392.6 MB, free: 8.316 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.001859/0.5648, allocations: 420.7 kB / 393 MB, free: 7.883 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.935e-05/0.5649, allocations: 110.8 kB / 393.1 MB, free: 7.75 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000409/0.5653, allocations: 237.7 kB / 393.4 MB, free: 7.516 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.266e-05/0.5654, allocations: 33.7 kB / 393.4 MB, free: 7.477 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002333/0.5656, allocations: 196 kB / 393.6 MB, free: 7.281 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.5657, allocations: 78.98 kB / 393.7 MB, free: 7.203 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.235e-05/0.5658, allocations: 4 kB / 393.7 MB, free: 7.199 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.566, allocations: 334.8 kB / 394 MB, free: 6.863 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002689/0.5663, allocations: 75.97 kB / 394.1 MB, free: 6.789 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003574/0.5666, allocations: 162.4 kB / 394.2 MB, free: 6.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003134/0.567, allocations: 93.86 kB / 394.3 MB, free: 6.5 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.567, allocations: 4 kB / 394.3 MB, free: 6.496 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00119/0.5682, allocations: 328.5 kB / 394.7 MB, free: 6.168 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/0.5682, allocations: 11.03 kB / 394.7 MB, free: 6.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.5683, allocations: 8 kB / 394.7 MB, free: 6.152 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003976/0.5687, allocations: 52.81 kB / 394.7 MB, free: 6.098 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004512/0.5691, allocations: 63.91 kB / 394.8 MB, free: 6.035 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001964/0.5711, allocations: 1.408 MB / 396.2 MB, free: 4.496 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004978/0.5717, allocations: 47.7 kB / 396.2 MB, free: 4.449 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.603e-05/0.5717, allocations: 12 kB / 396.3 MB, free: 4.438 MB / 330.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: 8 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * 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.0002762/0.572, allocations: 145.8 kB / 396.4 MB, free: 4.285 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.813e-05/0.5721, allocations: 35.86 kB / 396.4 MB, free: 4.25 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001047/0.5722, allocations: 30.16 kB / 396.5 MB, free: 4.215 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.5722, allocations: 4 kB / 396.5 MB, free: 4.211 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.5722, allocations: 0 / 396.5 MB, free: 4.211 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.5722, allocations: 3.984 kB / 396.5 MB, free: 4.207 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005385/0.5728, allocations: 337.3 kB / 396.8 MB, free: 3.828 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.5728, allocations: 0 / 396.8 MB, free: 3.828 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003711/0.5732, allocations: 43.91 kB / 396.8 MB, free: 3.785 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003366/0.5735, allocations: 52.81 kB / 396.9 MB, free: 3.73 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.207e-05/0.5736, allocations: 11.95 kB / 396.9 MB, free: 3.719 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001764/0.5754, allocations: 1.331 MB / 398.2 MB, free: 2.254 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.5754, allocations: 3.938 kB / 398.2 MB, free: 2.25 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001222/0.5767, allocations: 349.7 kB / 398.6 MB, free: 1.887 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00019/0.5769, allocations: 116.7 kB / 398.7 MB, free: 1.754 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.77e-05/0.5769, allocations: 11.94 kB / 398.7 MB, free: 1.742 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003139/0.5773, allocations: 24.05 kB / 398.7 MB, free: 1.719 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.5774, allocations: 31.89 kB / 398.8 MB, free: 1.688 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-05/0.5775, allocations: 11.98 kB / 398.8 MB, free: 1.676 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003175/0.5778, allocations: 178 kB / 398.9 MB, free: 1.504 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5778, allocations: 0 / 398.9 MB, free: 1.504 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005893/0.5784, allocations: 95.78 kB / 399 MB, free: 1.41 MB / 330.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: 5 ($whenCondition1,switch1.off,switch2.off,switch2.quenched,switch2.tSwitch) * 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): 18 * 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.001607/0.58, allocations: 0.9117 MB / 399.9 MB, free: 480 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009343/0.581, allocations: 306.4 kB / 400.2 MB, free: 160 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.581, allocations: 0 / 400.2 MB, free: 160 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005261/0.5815, allocations: 195.2 kB / 400.4 MB, free: 15.95 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004021/0.582, allocations: 36.55 kB / 400.5 MB, free: 15.92 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005684/0.5877, allocations: 3.183 MB / 403.7 MB, free: 12.65 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004793/0.5882, allocations: 0.783 MB / 404.4 MB, free: 11.84 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002123/0.5884, allocations: 22.3 kB / 404.5 MB, free: 11.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002031/0.5886, allocations: 91.41 kB / 404.6 MB, free: 11.73 MB / 346.7 MB Notification: Performance of SimCode: time 1.422e-06/0.5886, allocations: 0 / 404.6 MB, free: 11.73 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08994/0.6786, allocations: 5.367 MB / 409.9 MB, free: 6.391 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002432/0.6789, allocations: 224.8 kB / 410.1 MB, free: 6.145 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.846/3.525, allocations: 0 / 410.1 MB, free: 6.145 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat