Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadModel(Modelica): time 1.826/1.826, allocations: 194.9 MB / 211.7 MB, free: 2.977 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003557/0.0003558, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07707/0.07745, allocations: 44.5 MB / 308.4 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3209/0.3984, allocations: 73.85 MB / 382.3 MB, free: 18.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002076/0.3986, allocations: 70.12 kB / 382.4 MB, free: 18.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01982/0.4185, allocations: 5.424 MB / 387.8 MB, free: 18.09 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.376e-06/0.4185, allocations: 3.938 kB / 387.8 MB, free: 18.09 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.968e-05/0.4186, allocations: 4.938 kB / 387.8 MB, free: 18.09 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.0008967/0.4195, allocations: 0.5673 MB / 388.4 MB, free: 17.64 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.4195, allocations: 12.64 kB / 388.4 MB, free: 17.64 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.962e-05/0.4196, allocations: 37 kB / 388.4 MB, free: 17.62 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002824/0.4199, allocations: 247.3 kB / 388.7 MB, free: 17.4 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.343e-05/0.42, allocations: 83.55 kB / 388.7 MB, free: 17.34 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.087e-05/0.4201, allocations: 26.25 kB / 388.8 MB, free: 17.34 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005563/0.4206, allocations: 292.3 kB / 389 MB, free: 17.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.4207, allocations: 0 / 389 MB, free: 17.27 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.884e-05/0.4207, allocations: 10.97 kB / 389.1 MB, free: 17.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.321e-06/0.4207, allocations: 3.875 kB / 389.1 MB, free: 17.27 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004252/0.4212, allocations: 194.8 kB / 389.2 MB, free: 17.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.423, allocations: 1.141 MB / 390.4 MB, free: 16.62 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003591/0.4234, allocations: 155.4 kB / 390.5 MB, free: 16.59 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.305e-05/0.4234, allocations: 3.406 kB / 390.5 MB, free: 16.59 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000314/0.4238, allocations: 161.4 kB / 390.7 MB, free: 16.51 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 3.195e-06/0.4238, allocations: 0 / 390.7 MB, free: 16.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.001136/0.4249, allocations: 395.5 kB / 391.1 MB, free: 16.36 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.047e-05/0.425, allocations: 112.5 kB / 391.2 MB, free: 16.23 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002105/0.4252, allocations: 203.5 kB / 391.4 MB, free: 16.12 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.893e-05/0.4253, allocations: 35.66 kB / 391.4 MB, free: 16.09 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.603e-05/0.4254, allocations: 225.9 kB / 391.7 MB, free: 15.91 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.722e-05/0.4254, allocations: 74.53 kB / 391.7 MB, free: 15.86 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.71e-05/0.4255, allocations: 10.88 kB / 391.7 MB, free: 15.86 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.458e-05/0.4255, allocations: 320.4 kB / 392 MB, free: 15.55 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001609/0.4257, allocations: 63.16 kB / 392.1 MB, free: 15.54 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.4259, allocations: 129.7 kB / 392.2 MB, free: 15.47 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001743/0.4261, allocations: 72.09 kB / 392.3 MB, free: 15.47 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.4261, allocations: 0 / 392.3 MB, free: 15.47 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005114/0.4266, allocations: 252.4 kB / 392.6 MB, free: 15.4 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.4267, allocations: 7.656 kB / 392.6 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.004e-06/0.4267, allocations: 0 / 392.6 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002936/0.427, allocations: 61.25 kB / 392.6 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002501/0.4273, allocations: 47.27 kB / 392.7 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001273/0.4285, allocations: 1.413 MB / 394.1 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003131/0.4289, allocations: 41.12 kB / 394.1 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.564e-05/0.4289, allocations: 7.812 kB / 394.1 MB, free: 14.02 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.0001727/0.4291, allocations: 152.6 kB / 394.3 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.712e-05/0.4292, allocations: 19.47 kB / 394.3 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.048e-05/0.4292, allocations: 27.23 kB / 394.3 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.575e-06/0.4293, allocations: 3.969 kB / 394.3 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.695e-06/0.4293, allocations: 3.938 kB / 394.3 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.465e-06/0.4293, allocations: 1.781 kB / 394.3 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003495/0.4296, allocations: 315.7 kB / 394.6 MB, free: 13.69 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.4297, allocations: 0 / 394.6 MB, free: 13.69 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002253/0.4299, allocations: 35.17 kB / 394.7 MB, free: 13.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002453/0.4302, allocations: 55.17 kB / 394.7 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.467e-05/0.4302, allocations: 6.5 kB / 394.7 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001118/0.4313, allocations: 1.328 MB / 396.1 MB, free: 12.4 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.366e-06/0.4314, allocations: 0 / 396.1 MB, free: 12.4 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008012/0.4322, allocations: 340.3 kB / 396.4 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001218/0.4323, allocations: 114.2 kB / 396.5 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.449e-05/0.4324, allocations: 10.73 kB / 396.5 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002312/0.4326, allocations: 22.25 kB / 396.5 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.4327, allocations: 29.12 kB / 396.6 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.4328, allocations: 5.609 kB / 396.6 MB, free: 12.19 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001532/0.4329, allocations: 160.8 kB / 396.7 MB, free: 12.11 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.4329, allocations: 3.938 kB / 396.7 MB, free: 12.11 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00051/0.4335, allocations: 82.52 kB / 396.8 MB, free: 12.1 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.0001376/0.4336, allocations: 112.4 kB / 396.9 MB, free: 12.01 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005702/0.4342, allocations: 281.9 kB / 397.2 MB, free: 11.89 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.4342, allocations: 0 / 397.2 MB, free: 11.89 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003091/0.4345, allocations: 184.8 kB / 397.4 MB, free: 11.78 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003216/0.4349, allocations: 39.12 kB / 397.4 MB, free: 11.77 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/0.4367, allocations: 0.8463 MB / 398.3 MB, free: 11.29 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001926/0.4369, allocations: 0.7635 MB / 399 MB, free: 10.59 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.388e-05/0.437, allocations: 23.09 kB / 399 MB, free: 10.58 MB / 314.7 MB Notification: Performance of SimCode: time 2.315e-06/0.437, allocations: 3.938 kB / 399.1 MB, free: 10.58 MB / 314.7 MB Notification: Performance of Templates: time 0.00652/0.4436, allocations: 4.05 MB / 403.1 MB, free: 10.35 MB / 314.7 MB