Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadModel(Modelica): time 2.316/2.316, allocations: 194.8 MB / 211.7 MB, free: 2.879 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005283/0.0005284, allocations: 8 kB / 264.6 MB, free: 12.9 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1296, allocations: 44.51 MB / 309.1 MB, free: 336 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.451/0.5807, allocations: 75.39 MB / 384.5 MB, free: 15.36 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003814/0.5811, allocations: 91.8 kB / 384.5 MB, free: 15.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02379/0.6049, allocations: 5.613 MB / 390.2 MB, free: 14.68 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.704e-06/0.605, allocations: 0 / 390.2 MB, free: 14.68 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.105e-05/0.605, allocations: 7.781 kB / 390.2 MB, free: 14.68 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001444/0.6065, allocations: 0.6278 MB / 390.8 MB, free: 14.2 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.6065, allocations: 7.625 kB / 390.8 MB, free: 14.2 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.506e-05/0.6066, allocations: 34.81 kB / 390.8 MB, free: 14.18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003831/0.607, allocations: 268.9 kB / 391.1 MB, free: 13.96 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.174e-05/0.6071, allocations: 19.16 kB / 391.1 MB, free: 13.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.7e-05/0.6071, allocations: 22.81 kB / 391.1 MB, free: 13.95 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008484/0.608, allocations: 282.8 kB / 391.4 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.608, allocations: 0 / 391.4 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.993e-05/0.6081, allocations: 6.625 kB / 391.4 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.6081, allocations: 7.656 kB / 391.4 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001048/0.6092, allocations: 259 kB / 391.7 MB, free: 13.9 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002351/0.6115, allocations: 1.088 MB / 392.8 MB, free: 13.35 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009179/0.6125, allocations: 181.9 kB / 392.9 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.28e-05/0.6125, allocations: 3.938 kB / 393 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000587/0.6131, allocations: 149.3 kB / 393.1 MB, free: 13.25 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 3.006e-06/0.6131, allocations: 0 / 393.1 MB, free: 13.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.001629/0.6148, allocations: 400.1 kB / 393.5 MB, free: 13.09 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.108e-05/0.6148, allocations: 85.11 kB / 393.6 MB, free: 12.99 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004654/0.6153, allocations: 315.4 kB / 393.9 MB, free: 12.88 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.205e-05/0.6154, allocations: 35.55 kB / 393.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.6155, allocations: 198.9 kB / 394.1 MB, free: 12.71 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.028e-05/0.6156, allocations: 36.77 kB / 394.1 MB, free: 12.69 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.063e-05/0.6156, allocations: 3.938 kB / 394.1 MB, free: 12.69 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.405e-05/0.6157, allocations: 334.5 kB / 394.5 MB, free: 12.38 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004398/0.6161, allocations: 99.34 kB / 394.6 MB, free: 12.37 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004853/0.6166, allocations: 202.2 kB / 394.8 MB, free: 12.23 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004862/0.6171, allocations: 142.2 kB / 394.9 MB, free: 12.19 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.6172, allocations: 0 / 394.9 MB, free: 12.19 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001235/0.6184, allocations: 383.9 kB / 395.3 MB, free: 12.07 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.978e-05/0.6185, allocations: 33.55 kB / 395.3 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.6185, allocations: 3.875 kB / 395.3 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002335/0.6187, allocations: 34.05 kB / 395.4 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004042/0.6191, allocations: 63.28 kB / 395.4 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001023/0.6202, allocations: 1.309 MB / 396.7 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005236/0.6207, allocations: 51.45 kB / 396.8 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.881e-05/0.6208, allocations: 15.44 kB / 396.8 MB, free: 10.73 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002207/0.621, allocations: 153.2 kB / 396.9 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.278e-05/0.6211, allocations: 26.77 kB / 397 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.608e-05/0.6211, allocations: 27.78 kB / 397 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.6212, allocations: 3.844 kB / 397 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.6212, allocations: 0 / 397 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.6212, allocations: 2.578 kB / 397 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004934/0.6217, allocations: 440.1 kB / 397.4 MB, free: 10.28 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.6217, allocations: 0 / 397.4 MB, free: 10.28 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002389/0.622, allocations: 37.02 kB / 397.5 MB, free: 10.28 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001442/0.6221, allocations: 27.33 kB / 397.5 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.6222, allocations: 6.438 kB / 397.5 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008997/0.6231, allocations: 1.298 MB / 398.8 MB, free: 8.996 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.6231, allocations: 3.875 kB / 398.8 MB, free: 8.996 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009504/0.624, allocations: 267.6 kB / 399.1 MB, free: 8.887 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.707e-05/0.6242, allocations: 113.4 kB / 399.2 MB, free: 8.773 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.397e-05/0.6242, allocations: 0 / 399.2 MB, free: 8.773 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003514/0.6246, allocations: 25.33 kB / 399.2 MB, free: 8.773 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.84e-05/0.6247, allocations: 21.47 kB / 399.2 MB, free: 8.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.739e-05/0.6247, allocations: 10.5 kB / 399.2 MB, free: 8.766 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003247/0.6251, allocations: 221.2 kB / 399.4 MB, free: 8.684 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6251, allocations: 0 / 399.4 MB, free: 8.684 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005024/0.6256, allocations: 75.36 kB / 399.5 MB, free: 8.668 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001534/0.6258, allocations: 105.6 kB / 399.6 MB, free: 8.582 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001227/0.627, allocations: 400.6 kB / 400 MB, free: 8.387 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.627, allocations: 0 / 400 MB, free: 8.387 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005866/0.6276, allocations: 212 kB / 400.2 MB, free: 8.273 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003967/0.628, allocations: 34.8 kB / 400.3 MB, free: 8.273 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001212/0.6293, allocations: 0.5161 MB / 400.8 MB, free: 7.961 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.6295, allocations: 0.7636 MB / 401.5 MB, free: 7.258 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002246/0.6297, allocations: 36.38 kB / 401.6 MB, free: 7.246 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.278e-05/0.6298, allocations: 19.03 kB / 401.6 MB, free: 7.238 MB / 314.7 MB Notification: Performance of SimCode: time 1.022e-06/0.6298, allocations: 0 / 401.6 MB, free: 7.238 MB / 314.7 MB Notification: Performance of Templates: time 0.01057/0.6404, allocations: 2.758 MB / 404.3 MB, free: 7.027 MB / 314.7 MB