Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.617/1.617, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000351/0.000351, allocations: 8 kB / 233.3 MB, free: 2.938 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07899/0.07937, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3299/0.4094, allocations: 69.44 MB / 341.5 MB, free: 4.023 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002553/0.4097, allocations: 77.89 kB / 341.6 MB, free: 3.98 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02586/0.4355, allocations: 6.02 MB / 347.6 MB, free: 14.85 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4356, allocations: 0 / 347.6 MB, free: 14.85 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.44e-05/0.4356, allocations: 8 kB / 347.7 MB, free: 14.84 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.001411/0.4371, allocations: 0.607 MB / 348.3 MB, free: 14.21 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.498e-05/0.4371, allocations: 12.03 kB / 348.3 MB, free: 14.2 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001124/0.4373, allocations: 67.34 kB / 348.3 MB, free: 14.14 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.4374, allocations: 39.53 kB / 348.4 MB, free: 14.1 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000405/0.4378, allocations: 276 kB / 348.6 MB, free: 13.81 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.61e-05/0.4379, allocations: 82.48 kB / 348.7 MB, free: 13.73 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.342e-05/0.438, allocations: 34.06 kB / 348.8 MB, free: 13.71 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008769/0.4389, allocations: 337.3 kB / 349.1 MB, free: 13.45 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.4389, allocations: 7.938 kB / 349.1 MB, free: 13.44 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.654e-05/0.439, allocations: 14.88 kB / 349.1 MB, free: 13.44 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.833e-05/0.439, allocations: 8 kB / 349.1 MB, free: 13.43 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007704/0.4398, allocations: 237.5 kB / 349.4 MB, free: 13.27 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002944/0.4427, allocations: 1.408 MB / 350.8 MB, free: 11.96 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007213/0.4435, allocations: 197.9 kB / 351 MB, free: 11.81 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.057e-05/0.4436, allocations: 7.984 kB / 351 MB, free: 11.8 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004901/0.4441, allocations: 168.3 kB / 351.1 MB, free: 11.64 MB / 282.7 MB Notification: Performance of pre-optimization done (n=19): time 2.815e-06/0.4441, allocations: 0 / 351.1 MB, free: 11.64 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.001985/0.4461, allocations: 447.7 kB / 351.6 MB, free: 11.24 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.573e-05/0.4462, allocations: 106.8 kB / 351.7 MB, free: 11.11 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003419/0.4465, allocations: 235.2 kB / 351.9 MB, free: 10.92 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.506e-05/0.4466, allocations: 33.45 kB / 351.9 MB, free: 10.89 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001756/0.4468, allocations: 258.9 kB / 352.2 MB, free: 10.66 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.516e-05/0.4468, allocations: 58.17 kB / 352.2 MB, free: 10.61 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.115e-05/0.4469, allocations: 7.938 kB / 352.2 MB, free: 10.61 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.447, allocations: 329.4 kB / 352.6 MB, free: 10.28 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003147/0.4474, allocations: 85.02 kB / 352.7 MB, free: 10.22 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003896/0.4478, allocations: 168.9 kB / 352.8 MB, free: 10.05 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003487/0.4481, allocations: 100.7 kB / 352.9 MB, free: 9.984 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.4481, allocations: 0 / 352.9 MB, free: 9.984 MB / 282.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009124/0.4491, allocations: 297.4 kB / 353.2 MB, free: 9.75 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.4491, allocations: 4.625 kB / 353.2 MB, free: 9.746 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.4491, allocations: 8.281 kB / 353.2 MB, free: 9.738 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003767/0.4495, allocations: 60.7 kB / 353.3 MB, free: 9.684 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005442/0.4501, allocations: 87 kB / 353.4 MB, free: 9.602 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001731/0.4518, allocations: 1.405 MB / 354.8 MB, free: 8.121 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004716/0.4523, allocations: 47.3 kB / 354.8 MB, free: 8.078 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.27e-05/0.4524, allocations: 11.62 kB / 354.8 MB, free: 8.07 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.0002406/0.4526, allocations: 149.7 kB / 355 MB, free: 7.934 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.819e-05/0.4527, allocations: 31.61 kB / 355 MB, free: 7.902 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.624e-05/0.4528, allocations: 32.11 kB / 355 MB, free: 7.883 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.4528, allocations: 0 / 355 MB, free: 7.883 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.4528, allocations: 0 / 355 MB, free: 7.883 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.288e-06/0.4528, allocations: 3.984 kB / 355 MB, free: 7.879 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004907/0.4533, allocations: 344 kB / 355.4 MB, free: 7.551 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.4533, allocations: 0 / 355.4 MB, free: 7.551 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004664/0.4538, allocations: 62.89 kB / 355.4 MB, free: 7.492 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003007/0.4541, allocations: 53.62 kB / 355.5 MB, free: 7.445 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.199e-05/0.4542, allocations: 10.69 kB / 355.5 MB, free: 7.438 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001527/0.4557, allocations: 1.341 MB / 356.8 MB, free: 6.023 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4557, allocations: 0 / 356.8 MB, free: 6.023 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001325/0.4571, allocations: 387 kB / 357.2 MB, free: 5.703 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001783/0.4573, allocations: 120 kB / 357.3 MB, free: 5.574 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.048e-05/0.4573, allocations: 3.375 kB / 357.3 MB, free: 5.574 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003243/0.4577, allocations: 31.61 kB / 357.4 MB, free: 5.547 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.4578, allocations: 31.88 kB / 357.4 MB, free: 5.52 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.4578, allocations: 4 kB / 357.4 MB, free: 5.516 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002551/0.4581, allocations: 187 kB / 357.6 MB, free: 5.367 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.4581, allocations: 0 / 357.6 MB, free: 5.367 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005518/0.4587, allocations: 87.28 kB / 357.7 MB, free: 5.289 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.00171/0.4604, allocations: 0.9244 MB / 358.6 MB, free: 4.418 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001013/0.4614, allocations: 326 kB / 358.9 MB, free: 4.137 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/0.4615, allocations: 4.562 kB / 358.9 MB, free: 4.133 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000516/0.462, allocations: 214.6 kB / 359.1 MB, free: 3.938 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003479/0.4623, allocations: 31.55 kB / 359.2 MB, free: 3.918 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00527/0.4676, allocations: 3.189 MB / 362.3 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003991/0.4681, allocations: 0.7793 MB / 363.1 MB, free: 56 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002003/0.4683, allocations: 95.83 kB / 363.2 MB, free: 24 kB / 282.7 MB Notification: Performance of SimCode: time 1.002e-06/0.4683, allocations: 0 / 363.2 MB, free: 24 kB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.538/3.007, allocations: 5.807 MB / 369 MB, free: 10.28 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat