Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadModel(Modelica): time 1.567/1.567, allocations: 171.2 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003567, allocations: 8 kB / 233.2 MB, free: 3.055 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07015/0.07053, allocations: 38.77 MB / 271.9 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003429/0.07401, allocations: 2.294 MB / 274.2 MB, free: 9.887 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001597/0.07565, allocations: 0.7369 MB / 275 MB, free: 9.148 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001822/0.07588, allocations: 8 kB / 275 MB, free: 9.141 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 8.957e-05/0.07598, allocations: 31.75 kB / 275 MB, free: 9.109 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002921/0.07629, allocations: 111.7 kB / 275.1 MB, free: 9 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003555/0.07666, allocations: 75.8 kB / 275.2 MB, free: 8.926 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003954/0.07708, allocations: 251.5 kB / 275.4 MB, free: 8.68 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002213/0.07732, allocations: 90.33 kB / 275.5 MB, free: 8.59 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.07751, allocations: 119.6 kB / 275.6 MB, free: 8.473 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002211/0.07774, allocations: 135.4 kB / 275.8 MB, free: 8.34 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.071e-05/0.07781, allocations: 16 kB / 275.8 MB, free: 8.324 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.793e-05/0.07788, allocations: 20 kB / 275.8 MB, free: 8.305 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.008e-05/0.07796, allocations: 47.83 kB / 275.8 MB, free: 8.258 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.07808, allocations: 81.58 kB / 275.9 MB, free: 8.172 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003552/0.07845, allocations: 263.4 kB / 276.2 MB, free: 7.914 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.628e-06/0.07846, allocations: 0 / 276.2 MB, free: 7.914 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.079e-06/0.07848, allocations: 0 / 276.2 MB, free: 7.914 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.242e-06/0.07849, allocations: 0 / 276.2 MB, free: 7.914 MB / 234.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.001111/0.07961, allocations: 0.5626 MB / 276.7 MB, free: 7.305 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.07966, allocations: 12.03 kB / 276.8 MB, free: 7.293 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.477e-05/0.07977, allocations: 35.62 kB / 276.8 MB, free: 7.258 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004127/0.0802, allocations: 263.1 kB / 277 MB, free: 6.961 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.926e-05/0.08032, allocations: 76 kB / 277.1 MB, free: 6.875 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.659e-05/0.0804, allocations: 28 kB / 277.1 MB, free: 6.848 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006772/0.08108, allocations: 297.8 kB / 277.4 MB, free: 6.535 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.08112, allocations: 0 / 277.4 MB, free: 6.535 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.27e-05/0.08117, allocations: 12 kB / 277.4 MB, free: 6.523 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.08119, allocations: 4 kB / 277.5 MB, free: 6.52 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004967/0.0817, allocations: 194.1 kB / 277.6 MB, free: 6.332 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00228/0.084, allocations: 1.143 MB / 278.8 MB, free: 5.105 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004133/0.08444, allocations: 154.9 kB / 278.9 MB, free: 4.945 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.52e-05/0.08448, allocations: 7.953 kB / 278.9 MB, free: 4.938 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003821/0.08487, allocations: 154.8 kB / 279.1 MB, free: 4.77 MB / 234.7 MB Notification: Performance of pre-optimization done (n=21): time 3.892e-06/0.08489, allocations: 0 / 279.1 MB, free: 4.77 MB / 234.7 MB Notification: Performance of matching and sorting (n=21): time 0.00134/0.08625, allocations: 396.2 kB / 279.5 MB, free: 4.355 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.776e-05/0.08636, allocations: 110.8 kB / 279.6 MB, free: 4.223 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003078/0.08668, allocations: 221 kB / 279.8 MB, free: 4 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.953e-05/0.08673, allocations: 29.7 kB / 279.8 MB, free: 3.965 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001884/0.08693, allocations: 242.5 kB / 280.1 MB, free: 3.727 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.978e-05/0.08704, allocations: 71.06 kB / 280.1 MB, free: 3.656 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.784e-05/0.08707, allocations: 4 kB / 280.1 MB, free: 3.652 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.08725, allocations: 322.8 kB / 280.5 MB, free: 3.328 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001836/0.08744, allocations: 63.97 kB / 280.5 MB, free: 3.266 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002637/0.08772, allocations: 148.6 kB / 280.7 MB, free: 3.09 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002076/0.08794, allocations: 77.2 kB / 280.7 MB, free: 3.016 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.998e-06/0.08796, allocations: 3.953 kB / 280.7 MB, free: 3.012 MB / 234.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006408/0.08861, allocations: 256.1 kB / 281 MB, free: 2.754 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.08865, allocations: 8 kB / 281 MB, free: 2.746 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.355e-06/0.08867, allocations: 0 / 281 MB, free: 2.746 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003388/0.08902, allocations: 61.03 kB / 281.1 MB, free: 2.684 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002751/0.08932, allocations: 51.91 kB / 281.1 MB, free: 2.633 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001834/0.09117, allocations: 1.412 MB / 282.5 MB, free: 1.086 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003152/0.0915, allocations: 51.86 kB / 282.6 MB, free: 1.035 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.816e-05/0.09156, allocations: 15.95 kB / 282.6 MB, free: 1.02 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (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.0002206/0.09179, allocations: 141.8 kB / 282.7 MB, free: 0.8711 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.989e-05/0.09186, allocations: 23.75 kB / 282.8 MB, free: 0.8477 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.09e-05/0.09193, allocations: 26.17 kB / 282.8 MB, free: 0.8242 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.551e-06/0.09195, allocations: 4 kB / 282.8 MB, free: 0.8203 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.528e-06/0.09196, allocations: 0 / 282.8 MB, free: 0.8203 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.09198, allocations: 4 kB / 282.8 MB, free: 0.8164 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004703/0.09245, allocations: 333.2 kB / 283.1 MB, free: 452 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.649e-06/0.09248, allocations: 4 kB / 283.1 MB, free: 448 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002442/0.09273, allocations: 35.92 kB / 283.2 MB, free: 412 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002687/0.09302, allocations: 52.81 kB / 283.2 MB, free: 356 kB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.092e-05/0.09306, allocations: 8 kB / 283.2 MB, free: 348 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001648/0.09473, allocations: 1.327 MB / 284.5 MB, free: 14.88 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.59e-06/0.09475, allocations: 3.984 kB / 284.5 MB, free: 14.88 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008861/0.09565, allocations: 332.7 kB / 284.9 MB, free: 14.54 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000159/0.09583, allocations: 112.8 kB / 285 MB, free: 14.41 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.944e-05/0.09589, allocations: 4 kB / 285 MB, free: 14.4 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002192/0.09612, allocations: 19.98 kB / 285 MB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.09625, allocations: 31.94 kB / 285 MB, free: 14.35 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.496e-05/0.09629, allocations: 11.98 kB / 285 MB, free: 14.34 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002102/0.09652, allocations: 160.4 kB / 285.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.37e-07/0.09653, allocations: 4.062 kB / 285.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005287/0.09707, allocations: 83.78 kB / 285.3 MB, free: 14.09 MB / 250.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.0001583/0.09724, allocations: 107.2 kB / 285.4 MB, free: 13.98 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0007044/0.09796, allocations: 282.5 kB / 285.7 MB, free: 13.69 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.756e-06/0.09798, allocations: 0 / 285.7 MB, free: 13.69 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003692/0.09836, allocations: 195 kB / 285.9 MB, free: 13.48 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003158/0.0987, allocations: 29.45 kB / 285.9 MB, free: 13.46 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002126/0.1008, allocations: 0.8395 MB / 286.7 MB, free: 12.58 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004771/0.1013, allocations: 0.7677 MB / 287.5 MB, free: 11.79 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.33e-05/0.1014, allocations: 19.44 kB / 287.5 MB, free: 11.77 MB / 250.7 MB Notification: Performance of SimCode: time 1.537e-06/0.1015, allocations: 0 / 287.5 MB, free: 11.77 MB / 250.7 MB Notification: Performance of Templates: time 0.0079/0.1094, allocations: 4.04 MB / 291.6 MB, free: 7.727 MB / 250.7 MB