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.OpAmps.Comparator.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.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadModel(Modelica): time 1.77/1.77, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003507/0.0003509, allocations: 12 kB / 264 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07817/0.07854, allocations: 44.5 MB / 308.5 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3347/0.4133, allocations: 75.4 MB / 383.9 MB, free: 18.83 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002478/0.4136, allocations: 81.66 kB / 383.9 MB, free: 18.83 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03657/0.4502, allocations: 5.61 MB / 389.6 MB, free: 18.16 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.384e-06/0.4506, allocations: 0 / 389.6 MB, free: 18.16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.909e-05/0.4506, allocations: 11.75 kB / 389.6 MB, free: 18.15 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.002207/0.4529, allocations: 0.6176 MB / 390.2 MB, free: 17.68 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.139e-05/0.453, allocations: 11.81 kB / 390.2 MB, free: 17.67 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001914/0.4532, allocations: 39.03 kB / 390.2 MB, free: 17.65 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007368/0.4539, allocations: 272.8 kB / 390.5 MB, free: 17.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.756e-05/0.454, allocations: 19.41 kB / 390.5 MB, free: 17.43 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.4541, allocations: 23.12 kB / 390.5 MB, free: 17.43 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.4557, allocations: 272.6 kB / 390.8 MB, free: 17.38 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.691e-05/0.4558, allocations: 0 / 390.8 MB, free: 17.38 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.868e-05/0.4559, allocations: 11 kB / 390.8 MB, free: 17.38 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.591e-05/0.4559, allocations: 7.719 kB / 390.8 MB, free: 17.38 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001807/0.4577, allocations: 259.4 kB / 391.1 MB, free: 17.38 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003958/0.4617, allocations: 1.092 MB / 392.2 MB, free: 16.82 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/0.4632, allocations: 178.9 kB / 392.3 MB, free: 16.8 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.21e-05/0.4632, allocations: 0 / 392.3 MB, free: 16.8 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008668/0.4641, allocations: 153.3 kB / 392.5 MB, free: 16.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 4.322e-06/0.4642, allocations: 3.938 kB / 392.5 MB, free: 16.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.002443/0.4666, allocations: 399.8 kB / 392.9 MB, free: 16.56 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.995e-05/0.4667, allocations: 80.95 kB / 393 MB, free: 16.46 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000809/0.4676, allocations: 289.7 kB / 393.2 MB, free: 16.35 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.587e-05/0.4676, allocations: 25.7 kB / 393.3 MB, free: 16.32 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000209/0.4679, allocations: 259.1 kB / 393.5 MB, free: 16.12 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.924e-05/0.468, allocations: 26.06 kB / 393.6 MB, free: 16.1 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.792e-05/0.468, allocations: 7.344 kB / 393.6 MB, free: 16.1 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.933e-05/0.4682, allocations: 321 kB / 393.9 MB, free: 15.79 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007124/0.4689, allocations: 97.52 kB / 394 MB, free: 15.78 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007669/0.4697, allocations: 203.3 kB / 394.2 MB, free: 15.64 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007694/0.4705, allocations: 133.9 kB / 394.3 MB, free: 15.61 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.373e-06/0.4705, allocations: 0 / 394.3 MB, free: 15.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.002058/0.4726, allocations: 371.8 kB / 394.7 MB, free: 15.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.331e-05/0.4727, allocations: 41.58 kB / 394.7 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.4727, allocations: 3.938 kB / 394.7 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003557/0.4731, allocations: 30.48 kB / 394.7 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006293/0.4738, allocations: 58.36 kB / 394.8 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001819/0.4756, allocations: 1.311 MB / 396.1 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008661/0.4765, allocations: 52.83 kB / 396.2 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.656e-05/0.4766, allocations: 15.09 kB / 396.2 MB, free: 14.16 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.0003452/0.477, allocations: 146.6 kB / 396.3 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.4771, allocations: 27.36 kB / 396.3 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.4773, allocations: 27.16 kB / 396.4 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.4773, allocations: 4 kB / 396.4 MB, free: 14.01 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.281e-05/0.4773, allocations: 6.828 kB / 396.4 MB, free: 14.01 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.904e-06/0.4774, allocations: 3.938 kB / 396.4 MB, free: 14.01 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009704/0.4783, allocations: 445.6 kB / 396.8 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.159e-06/0.4784, allocations: 0 / 396.8 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000398/0.4788, allocations: 26.75 kB / 396.8 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002628/0.4791, allocations: 29.98 kB / 396.9 MB, free: 13.69 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.432e-05/0.4792, allocations: 0 / 396.9 MB, free: 13.69 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00168/0.4809, allocations: 1.308 MB / 398.2 MB, free: 12.42 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.332e-06/0.4809, allocations: 0 / 398.2 MB, free: 12.42 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001491/0.4824, allocations: 284.3 kB / 398.5 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001627/0.4826, allocations: 113.3 kB / 398.6 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/0.4828, allocations: 3.438 kB / 398.6 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005641/0.4833, allocations: 26.66 kB / 398.6 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.4835, allocations: 23.19 kB / 398.6 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.353e-05/0.4836, allocations: 3.906 kB / 398.6 MB, free: 12.17 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000584/0.4842, allocations: 228.2 kB / 398.8 MB, free: 12.08 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.099e-06/0.4842, allocations: 0 / 398.8 MB, free: 12.08 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001123/0.4854, allocations: 69.41 kB / 398.9 MB, free: 12.07 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.0002219/0.4856, allocations: 105 kB / 399 MB, free: 11.98 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001919/0.4875, allocations: 397.8 kB / 399.4 MB, free: 11.79 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.4876, allocations: 0 / 399.4 MB, free: 11.79 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009175/0.4885, allocations: 213.1 kB / 399.6 MB, free: 11.68 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006248/0.4892, allocations: 33.91 kB / 399.6 MB, free: 11.68 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00192/0.4911, allocations: 0.5483 MB / 400.2 MB, free: 11.32 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000365/0.4915, allocations: 0.7646 MB / 401 MB, free: 10.62 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002091/0.4918, allocations: 22.88 kB / 401 MB, free: 10.61 MB / 314.7 MB Notification: Performance of SimCode: time 2.299e-06/0.4918, allocations: 0 / 401 MB, free: 10.61 MB / 314.7 MB Notification: Performance of Templates: time 0.01162/0.5034, allocations: 4.295 MB / 405.3 MB, free: 10.39 MB / 314.7 MB