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.SwitchWithArc.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.SwitchWithArc,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.766/1.766, allocations: 171.2 MB / 186.1 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00035/0.00035, allocations: 8 kB / 233.4 MB, free: 168 kB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08485/0.08524, allocations: 38.76 MB / 272.1 MB, free: 9.32 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3737/0.459, allocations: 68.46 MB / 340.6 MB, free: 13.98 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/0.4594, allocations: 71.95 kB / 340.7 MB, free: 13.91 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02377/0.4831, allocations: 5.351 MB / 346 MB, free: 8.555 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.969e-06/0.4832, allocations: 0 / 346 MB, free: 8.555 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.091e-05/0.4832, allocations: 11.94 kB / 346 MB, free: 8.543 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001306/0.4846, allocations: 0.564 MB / 346.6 MB, free: 7.93 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.4846, allocations: 8.031 kB / 346.6 MB, free: 7.922 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001135/0.4848, allocations: 66.53 kB / 346.7 MB, free: 7.848 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.997e-05/0.4849, allocations: 39.56 kB / 346.7 MB, free: 7.809 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003853/0.4853, allocations: 250.8 kB / 346.9 MB, free: 7.523 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001368/0.4854, allocations: 87.98 kB / 347 MB, free: 7.426 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.341e-05/0.4855, allocations: 28 kB / 347.1 MB, free: 7.398 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007605/0.4863, allocations: 285.8 kB / 347.3 MB, free: 7.105 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.4863, allocations: 7.984 kB / 347.3 MB, free: 7.098 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.095e-05/0.4864, allocations: 15.98 kB / 347.4 MB, free: 7.082 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.4864, allocations: 8 kB / 347.4 MB, free: 7.074 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005463/0.4869, allocations: 190.1 kB / 347.5 MB, free: 6.887 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002522/0.4895, allocations: 1.143 MB / 348.7 MB, free: 5.664 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000459/0.49, allocations: 158.9 kB / 348.8 MB, free: 5.5 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.088e-05/0.49, allocations: 3.953 kB / 348.8 MB, free: 5.496 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003977/0.4904, allocations: 163.5 kB / 349 MB, free: 5.312 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 2.625e-06/0.4904, allocations: 0 / 349 MB, free: 5.312 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.001602/0.4921, allocations: 389.4 kB / 349.4 MB, free: 4.906 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.532e-05/0.4921, allocations: 106.8 kB / 349.5 MB, free: 4.777 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002907/0.4924, allocations: 200.2 kB / 349.7 MB, free: 4.574 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.779e-05/0.4925, allocations: 33.7 kB / 349.7 MB, free: 4.535 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/0.4927, allocations: 176.2 kB / 349.9 MB, free: 4.359 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.095e-05/0.4928, allocations: 67 kB / 350 MB, free: 4.293 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.938e-05/0.4928, allocations: 8 kB / 350 MB, free: 4.285 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.4929, allocations: 334.8 kB / 350.3 MB, free: 3.949 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002065/0.4932, allocations: 64.53 kB / 350.4 MB, free: 3.883 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002835/0.4935, allocations: 132.1 kB / 350.5 MB, free: 3.73 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002168/0.4937, allocations: 72.72 kB / 350.6 MB, free: 3.664 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.4937, allocations: 0 / 350.6 MB, free: 3.664 MB / 282.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006567/0.4944, allocations: 264.1 kB / 350.8 MB, free: 3.398 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.4944, allocations: 10.03 kB / 350.8 MB, free: 3.391 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.4944, allocations: 0 / 350.8 MB, free: 3.391 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00037/0.4948, allocations: 60.97 kB / 350.9 MB, free: 3.328 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003562/0.4952, allocations: 43.92 kB / 350.9 MB, free: 3.285 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00188/0.4971, allocations: 1.416 MB / 352.3 MB, free: 1.727 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004352/0.4975, allocations: 36.08 kB / 352.4 MB, free: 1.691 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.837e-05/0.4976, allocations: 12 kB / 352.4 MB, free: 1.68 MB / 282.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.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 (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.0002473/0.4978, allocations: 153.7 kB / 352.5 MB, free: 1.52 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.4e-05/0.4979, allocations: 23.72 kB / 352.6 MB, free: 1.496 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.943e-05/0.498, allocations: 26.19 kB / 352.6 MB, free: 1.477 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.498, allocations: 3.984 kB / 352.6 MB, free: 1.473 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.498, allocations: 4 kB / 352.6 MB, free: 1.469 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.498, allocations: 4 kB / 352.6 MB, free: 1.465 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005032/0.4985, allocations: 325.2 kB / 352.9 MB, free: 1.098 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.4986, allocations: 0 / 352.9 MB, free: 1.098 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003126/0.4989, allocations: 31.92 kB / 353 MB, free: 1.066 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003183/0.4992, allocations: 60.81 kB / 353 MB, free: 1.004 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.745e-05/0.4993, allocations: 7.984 kB / 353 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001604/0.5009, allocations: 1.324 MB / 354.3 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.5009, allocations: 0 / 354.3 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.502, allocations: 344.7 kB / 354.7 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001616/0.5022, allocations: 108.9 kB / 354.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.145e-05/0.5022, allocations: 8 kB / 354.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002929/0.5025, allocations: 19.98 kB / 354.8 MB, free: 15.03 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.5027, allocations: 31.94 kB / 354.8 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.118e-05/0.5027, allocations: 4 kB / 354.8 MB, free: 14.99 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002237/0.503, allocations: 164.5 kB / 355 MB, free: 14.83 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.503, allocations: 4.062 kB / 355 MB, free: 14.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005287/0.5035, allocations: 91.7 kB / 355.1 MB, free: 14.73 MB / 298.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.001464/0.505, allocations: 0.8629 MB / 356 MB, free: 13.84 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008101/0.5058, allocations: 290.2 kB / 356.2 MB, free: 13.55 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.5059, allocations: 4 kB / 356.3 MB, free: 13.54 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004035/0.5063, allocations: 186.6 kB / 356.4 MB, free: 13.35 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004035/0.5067, allocations: 36.8 kB / 356.5 MB, free: 13.31 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004927/0.5116, allocations: 2.372 MB / 358.8 MB, free: 10.87 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004015/0.5121, allocations: 0.7674 MB / 359.6 MB, free: 10.07 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001922/0.5123, allocations: 21.95 kB / 359.6 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000179/0.5125, allocations: 79.41 kB / 359.7 MB, free: 9.969 MB / 298.7 MB Notification: Performance of SimCode: time 1.553e-06/0.5125, allocations: 0 / 359.7 MB, free: 9.969 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03023/0.5427, allocations: 5.028 MB / 364.7 MB, free: 5.004 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00037/0.5432, allocations: 204.4 kB / 364.9 MB, free: 4.766 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.532/3.075, allocations: 0 / 364.9 MB, free: 4.766 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat