Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.905/1.905, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004912/0.0004912, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1014, allocations: 44.5 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4415/0.5429, allocations: 73.84 MB / 382.4 MB, free: 14.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002812/0.5432, allocations: 70.05 kB / 382.5 MB, free: 14.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02288/0.5661, allocations: 5.423 MB / 387.9 MB, free: 14.19 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5662, allocations: 224 / 387.9 MB, free: 14.19 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.542e-05/0.5662, allocations: 10.5 kB / 387.9 MB, free: 14.19 MB / 314.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.001256/0.5675, allocations: 0.5677 MB / 388.5 MB, free: 13.74 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/0.5676, allocations: 8.969 kB / 388.5 MB, free: 13.74 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001104/0.5677, allocations: 66.92 kB / 388.5 MB, free: 13.7 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.993e-05/0.5678, allocations: 33.47 kB / 388.6 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003547/0.5682, allocations: 252 kB / 388.8 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.177e-05/0.5683, allocations: 84.08 kB / 388.9 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.188e-05/0.5683, allocations: 24.94 kB / 388.9 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006963/0.569, allocations: 291.6 kB / 389.2 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.5691, allocations: 7.875 kB / 389.2 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.316e-05/0.5691, allocations: 7.188 kB / 389.2 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/0.5692, allocations: 7.781 kB / 389.2 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004841/0.5697, allocations: 187.8 kB / 389.4 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002279/0.572, allocations: 1.149 MB / 390.6 MB, free: 12.67 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003986/0.5724, allocations: 158.2 kB / 390.7 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.668e-05/0.5724, allocations: 3.953 kB / 390.7 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003528/0.5728, allocations: 152.5 kB / 390.9 MB, free: 12.56 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 2.976e-06/0.5728, allocations: 0 / 390.9 MB, free: 12.56 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.00159/0.5744, allocations: 402.4 kB / 391.3 MB, free: 12.41 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.478e-05/0.5745, allocations: 106.7 kB / 391.4 MB, free: 12.28 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002508/0.5748, allocations: 205 kB / 391.6 MB, free: 12.18 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.175e-05/0.5748, allocations: 31.27 kB / 391.6 MB, free: 12.14 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.5749, allocations: 231.2 kB / 391.8 MB, free: 11.96 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.839e-05/0.575, allocations: 77.61 kB / 391.9 MB, free: 11.91 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.76e-05/0.575, allocations: 3.812 kB / 391.9 MB, free: 11.91 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.191e-05/0.5751, allocations: 324 kB / 392.2 MB, free: 11.6 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001723/0.5753, allocations: 58.77 kB / 392.3 MB, free: 11.6 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002148/0.5755, allocations: 134.4 kB / 392.4 MB, free: 11.53 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001884/0.5757, allocations: 70.09 kB / 392.5 MB, free: 11.52 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.5757, allocations: 0 / 392.5 MB, free: 11.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005531/0.5763, allocations: 252.5 kB / 392.7 MB, free: 11.46 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.5763, allocations: 7.875 kB / 392.7 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.5764, allocations: 0 / 392.7 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003508/0.5767, allocations: 58.28 kB / 392.8 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000353/0.5771, allocations: 50.64 kB / 392.8 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001416/0.5785, allocations: 1.412 MB / 394.2 MB, free: 10.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004161/0.579, allocations: 45.36 kB / 394.3 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.647e-05/0.579, allocations: 10.98 kB / 394.3 MB, free: 10.07 MB / 314.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.0002026/0.5792, allocations: 151 kB / 394.4 MB, free: 9.941 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.657e-05/0.5793, allocations: 23.41 kB / 394.5 MB, free: 9.93 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.568e-05/0.5793, allocations: 28.33 kB / 394.5 MB, free: 9.93 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.5793, allocations: 3.844 kB / 394.5 MB, free: 9.93 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.5794, allocations: 0 / 394.5 MB, free: 9.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.5794, allocations: 0 / 394.5 MB, free: 9.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000365/0.5797, allocations: 324.1 kB / 394.8 MB, free: 9.734 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.5798, allocations: 3.938 kB / 394.8 MB, free: 9.734 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002878/0.5801, allocations: 27 kB / 394.8 MB, free: 9.734 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002882/0.5804, allocations: 62.67 kB / 394.9 MB, free: 9.719 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.534e-05/0.5804, allocations: 3.75 kB / 394.9 MB, free: 9.719 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001292/0.5817, allocations: 1.327 MB / 396.2 MB, free: 8.449 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.5817, allocations: 0 / 396.2 MB, free: 8.449 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009236/0.5827, allocations: 335.9 kB / 396.6 MB, free: 8.348 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001407/0.5828, allocations: 110.4 kB / 396.7 MB, free: 8.242 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.807e-05/0.5829, allocations: 7.562 kB / 396.7 MB, free: 8.242 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002829/0.5832, allocations: 28.81 kB / 396.7 MB, free: 8.234 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.5833, allocations: 28.42 kB / 396.7 MB, free: 8.234 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.006e-05/0.5834, allocations: 6.5 kB / 396.7 MB, free: 8.234 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001751/0.5835, allocations: 161 kB / 396.9 MB, free: 8.156 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5835, allocations: 0 / 396.9 MB, free: 8.156 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000499/0.5841, allocations: 83.75 kB / 397 MB, free: 8.148 MB / 314.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.001154/0.5852, allocations: 0.8763 MB / 397.9 MB, free: 7.52 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000681/0.5859, allocations: 282.7 kB / 398.1 MB, free: 7.398 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.5859, allocations: 4.125 kB / 398.1 MB, free: 7.395 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003449/0.5863, allocations: 187.4 kB / 398.3 MB, free: 7.285 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003885/0.5867, allocations: 34.67 kB / 398.4 MB, free: 7.281 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004016/0.5907, allocations: 2.405 MB / 400.8 MB, free: 5.73 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002228/0.591, allocations: 0.7707 MB / 401.5 MB, free: 5.023 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001634/0.5912, allocations: 84.69 kB / 401.6 MB, free: 5.016 MB / 314.7 MB Notification: Performance of SimCode: time 1.122e-06/0.5912, allocations: 0 / 401.6 MB, free: 5.016 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.717/3.308, allocations: 5.245 MB / 406.9 MB, free: 4.621 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat