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.SwitchWithArc.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.SwitchWithArc,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.996/1.996, allocations: 194.9 MB / 211.1 MB, free: 8.547 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003605/0.0003605, allocations: 12 kB / 264.1 MB, free: 3.473 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3801/0.3805, allocations: 44.51 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.15/0.5305, allocations: 73.84 MB / 382.4 MB, free: 2.715 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002813/0.5309, allocations: 67.97 kB / 382.5 MB, free: 2.648 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02424/0.5551, allocations: 5.429 MB / 387.9 MB, free: 13.19 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.5552, allocations: 3.938 kB / 387.9 MB, free: 13.19 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.212e-05/0.5552, allocations: 4.219 kB / 387.9 MB, free: 13.18 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001391/0.5566, allocations: 0.572 MB / 388.5 MB, free: 12.56 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.521e-05/0.5567, allocations: 8.031 kB / 388.5 MB, free: 12.55 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001167/0.5568, allocations: 70.55 kB / 388.6 MB, free: 12.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001096/0.557, allocations: 39.61 kB / 388.6 MB, free: 12.44 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004245/0.5574, allocations: 254.5 kB / 388.8 MB, free: 12.15 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001544/0.5576, allocations: 72.06 kB / 388.9 MB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.591e-05/0.5577, allocations: 32 kB / 389 MB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007883/0.5585, allocations: 289.8 kB / 389.2 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.5585, allocations: 3.938 kB / 389.2 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.917e-05/0.5585, allocations: 12 kB / 389.2 MB, free: 11.72 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.5586, allocations: 8 kB / 389.3 MB, free: 11.71 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005669/0.5592, allocations: 190.2 kB / 389.4 MB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0028/0.562, allocations: 1.154 MB / 390.6 MB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005028/0.5625, allocations: 150.9 kB / 390.7 MB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.367e-05/0.5626, allocations: 7.953 kB / 390.8 MB, free: 10.13 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004265/0.563, allocations: 155.5 kB / 390.9 MB, free: 9.953 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 3.176e-06/0.563, allocations: 4 kB / 390.9 MB, free: 9.949 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.001709/0.5648, allocations: 392.4 kB / 391.3 MB, free: 9.543 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.64e-05/0.5649, allocations: 118.7 kB / 391.4 MB, free: 9.402 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003447/0.5653, allocations: 196.2 kB / 391.6 MB, free: 9.203 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.454e-05/0.5653, allocations: 33.64 kB / 391.6 MB, free: 9.164 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001894/0.5655, allocations: 172.2 kB / 391.8 MB, free: 8.992 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.5656, allocations: 78.98 kB / 391.9 MB, free: 8.914 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.983e-05/0.5657, allocations: 4 kB / 391.9 MB, free: 8.91 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.5658, allocations: 330.8 kB / 392.2 MB, free: 8.578 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002265/0.5661, allocations: 64.55 kB / 392.3 MB, free: 8.512 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002833/0.5664, allocations: 128.1 kB / 392.4 MB, free: 8.363 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002356/0.5666, allocations: 77.12 kB / 392.5 MB, free: 8.289 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.5666, allocations: 0 / 392.5 MB, free: 8.289 MB / 330.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007277/0.5674, allocations: 260.1 kB / 392.7 MB, free: 8.027 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.5674, allocations: 4 kB / 392.7 MB, free: 8.023 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.5674, allocations: 4 kB / 392.7 MB, free: 8.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004101/0.5679, allocations: 60.97 kB / 392.8 MB, free: 7.957 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003673/0.5682, allocations: 47.91 kB / 392.8 MB, free: 7.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001951/0.5702, allocations: 1.401 MB / 394.2 MB, free: 6.371 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004286/0.5707, allocations: 39.98 kB / 394.3 MB, free: 6.332 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.557e-05/0.5707, allocations: 16 kB / 394.3 MB, free: 6.316 MB / 330.7 MB 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.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 (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.0002415/0.571, allocations: 141.7 kB / 394.4 MB, free: 6.168 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.95e-05/0.5711, allocations: 23.72 kB / 394.5 MB, free: 6.145 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.459e-05/0.5712, allocations: 30.17 kB / 394.5 MB, free: 6.121 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.5712, allocations: 7.938 kB / 394.5 MB, free: 6.113 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.5712, allocations: 0 / 394.5 MB, free: 6.113 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.744e-06/0.5712, allocations: 3.984 kB / 394.5 MB, free: 6.109 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005091/0.5717, allocations: 321.3 kB / 394.8 MB, free: 5.746 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.5717, allocations: 4 kB / 394.8 MB, free: 5.742 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003217/0.5721, allocations: 31.98 kB / 394.8 MB, free: 5.711 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003357/0.5724, allocations: 52.81 kB / 394.9 MB, free: 5.656 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.028e-05/0.5725, allocations: 11.94 kB / 394.9 MB, free: 5.645 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001711/0.5742, allocations: 1.328 MB / 396.2 MB, free: 4.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.5743, allocations: 4.062 kB / 396.2 MB, free: 4.176 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001071/0.5753, allocations: 325.5 kB / 396.6 MB, free: 3.836 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001786/0.5755, allocations: 112.9 kB / 396.7 MB, free: 3.707 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.052e-05/0.5756, allocations: 4 kB / 396.7 MB, free: 3.703 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002999/0.5759, allocations: 28.05 kB / 396.7 MB, free: 3.676 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.5761, allocations: 35.88 kB / 396.7 MB, free: 3.641 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.629e-05/0.5761, allocations: 7.984 kB / 396.7 MB, free: 3.633 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002318/0.5763, allocations: 156.5 kB / 396.9 MB, free: 3.48 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5764, allocations: 0 / 396.9 MB, free: 3.48 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005363/0.5769, allocations: 83.75 kB / 397 MB, free: 3.398 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulsStart,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): 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.001541/0.5785, allocations: 0.8752 MB / 397.9 MB, free: 2.496 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008235/0.5793, allocations: 290.4 kB / 398.1 MB, free: 2.199 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.5794, allocations: 0 / 398.1 MB, free: 2.199 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004249/0.5798, allocations: 186.6 kB / 398.3 MB, free: 2.004 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004087/0.5802, allocations: 32.42 kB / 398.3 MB, free: 1.973 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005148/0.5854, allocations: 2.389 MB / 400.7 MB, free: 15.51 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004621/0.5859, allocations: 0.7713 MB / 401.5 MB, free: 14.71 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002055/0.5861, allocations: 25.89 kB / 401.5 MB, free: 14.68 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001875/0.5863, allocations: 83.41 kB / 401.6 MB, free: 14.6 MB / 346.7 MB Notification: Performance of SimCode: time 1.103e-06/0.5863, allocations: 0 / 401.6 MB, free: 14.6 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03094/0.6173, allocations: 5.017 MB / 406.6 MB, free: 9.613 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002907/0.6177, allocations: 213.5 kB / 406.8 MB, free: 9.367 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.858/3.476, allocations: 0 / 406.8 MB, free: 9.367 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat