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.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_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.691/1.691, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004765/0.0004767, allocations: 8 kB / 233.3 MB, free: 2.914 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08299/0.0835, allocations: 38.77 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.353/0.4366, allocations: 68.46 MB / 340.6 MB, free: 5.035 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000256/0.4369, allocations: 71.28 kB / 340.6 MB, free: 5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02269/0.4596, allocations: 5.345 MB / 346 MB, free: 464 kB / 266.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4596, allocations: 3.938 kB / 346 MB, free: 460 kB / 266.7 MB Notification: Performance of Transformations before backend: time 2.004e-05/0.4597, allocations: 4 kB / 346 MB, free: 456 kB / 266.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.001285/0.461, allocations: 0.568 MB / 346.6 MB, free: 15.85 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.461, allocations: 12.03 kB / 346.6 MB, free: 15.84 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001009/0.4611, allocations: 65.16 kB / 346.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001/0.4612, allocations: 39.62 kB / 346.7 MB, free: 15.74 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003951/0.4617, allocations: 258.1 kB / 346.9 MB, free: 15.47 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.842e-05/0.4618, allocations: 77.31 kB / 347 MB, free: 15.39 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.865e-05/0.4618, allocations: 30.81 kB / 347 MB, free: 15.37 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006847/0.4625, allocations: 288.5 kB / 347.3 MB, free: 15.16 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.4626, allocations: 0 / 347.3 MB, free: 15.16 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.218e-05/0.4626, allocations: 14.44 kB / 347.3 MB, free: 15.15 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/0.4626, allocations: 8 kB / 347.3 MB, free: 15.14 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005276/0.4632, allocations: 189 kB / 347.5 MB, free: 15.02 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00241/0.4656, allocations: 1.149 MB / 348.7 MB, free: 13.96 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004166/0.4661, allocations: 157.2 kB / 348.8 MB, free: 13.85 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.713e-05/0.4661, allocations: 7.938 kB / 348.8 MB, free: 13.84 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003699/0.4665, allocations: 151.8 kB / 349 MB, free: 13.7 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 2.535e-06/0.4665, allocations: 0 / 349 MB, free: 13.7 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.001634/0.4681, allocations: 392 kB / 349.4 MB, free: 13.35 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.537e-05/0.4682, allocations: 110.8 kB / 349.5 MB, free: 13.22 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002923/0.4685, allocations: 206 kB / 349.7 MB, free: 13.04 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.421e-05/0.4686, allocations: 29.52 kB / 349.7 MB, free: 13.01 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.4687, allocations: 228.6 kB / 349.9 MB, free: 12.8 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.26e-05/0.4688, allocations: 75.8 kB / 350 MB, free: 12.74 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.151e-05/0.4689, allocations: 7.25 kB / 350 MB, free: 12.74 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.469, allocations: 318.4 kB / 350.3 MB, free: 12.42 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002078/0.4692, allocations: 64.66 kB / 350.4 MB, free: 12.38 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002704/0.4695, allocations: 133.6 kB / 350.5 MB, free: 12.25 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002336/0.4697, allocations: 66.17 kB / 350.6 MB, free: 12.22 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.4698, allocations: 0 / 350.6 MB, free: 12.22 MB / 282.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006824/0.4705, allocations: 256.8 kB / 350.8 MB, free: 12.02 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.4705, allocations: 7.984 kB / 350.8 MB, free: 12.02 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.4705, allocations: 7.969 kB / 350.8 MB, free: 12.01 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003825/0.4709, allocations: 59.66 kB / 350.9 MB, free: 11.96 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003576/0.4713, allocations: 47.92 kB / 350.9 MB, free: 11.91 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001712/0.473, allocations: 1.404 MB / 352.3 MB, free: 10.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003919/0.4734, allocations: 42.23 kB / 352.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.664e-05/0.4735, allocations: 8 kB / 352.4 MB, free: 10.38 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.0002466/0.4737, allocations: 151 kB / 352.5 MB, free: 10.24 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.191e-05/0.4738, allocations: 23.12 kB / 352.6 MB, free: 10.22 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.829e-05/0.4738, allocations: 27.67 kB / 352.6 MB, free: 10.21 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.4739, allocations: 4 kB / 352.6 MB, free: 10.21 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.4739, allocations: 0 / 352.6 MB, free: 10.21 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.4739, allocations: 3.938 kB / 352.6 MB, free: 10.21 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004422/0.4743, allocations: 327 kB / 352.9 MB, free: 9.891 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.4744, allocations: 0 / 352.9 MB, free: 9.891 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003012/0.4747, allocations: 31.98 kB / 353 MB, free: 9.859 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002881/0.475, allocations: 55.69 kB / 353 MB, free: 9.812 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.36e-05/0.475, allocations: 4 kB / 353 MB, free: 9.809 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001537/0.4766, allocations: 1.332 MB / 354.3 MB, free: 8.402 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.4766, allocations: 4.031 kB / 354.3 MB, free: 8.398 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.4776, allocations: 336.8 kB / 354.7 MB, free: 8.129 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001474/0.4778, allocations: 111.6 kB / 354.8 MB, free: 8.008 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.934e-05/0.4779, allocations: 11.36 kB / 354.8 MB, free: 8 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002917/0.4782, allocations: 22.92 kB / 354.8 MB, free: 7.98 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001305/0.4783, allocations: 38.5 kB / 354.9 MB, free: 7.949 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.139e-05/0.4783, allocations: 8 kB / 354.9 MB, free: 7.941 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002056/0.4785, allocations: 156.7 kB / 355 MB, free: 7.809 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4786, allocations: 0 / 355 MB, free: 7.809 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005171/0.4791, allocations: 90.34 kB / 355.1 MB, free: 7.727 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: 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.001361/0.4805, allocations: 0.8656 MB / 356 MB, free: 6.914 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007701/0.4812, allocations: 285.6 kB / 356.2 MB, free: 6.676 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4813, allocations: 4.062 kB / 356.3 MB, free: 6.672 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004314/0.4817, allocations: 189.9 kB / 356.4 MB, free: 6.496 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003723/0.4821, allocations: 36.22 kB / 356.5 MB, free: 6.473 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004548/0.4867, allocations: 2.399 MB / 358.9 MB, free: 4.191 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000384/0.4871, allocations: 0.7635 MB / 359.6 MB, free: 3.398 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000172/0.4873, allocations: 84.66 kB / 359.7 MB, free: 3.371 MB / 282.7 MB Notification: Performance of SimCode: time 8.62e-07/0.4873, allocations: 0 / 359.7 MB, free: 3.371 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.574/3.062, allocations: 5.259 MB / 365 MB, free: 14.16 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat