Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadModel(Modelica): time 1.97/1.97, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003492/0.0003494, allocations: 11.98 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09637/0.09674, allocations: 44.5 MB / 309 MB, free: 1.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4195/0.5163, allocations: 75.4 MB / 384.4 MB, free: 15 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003066/0.5167, allocations: 81.94 kB / 384.5 MB, free: 15 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02522/0.5419, allocations: 5.609 MB / 390.1 MB, free: 14.33 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.542, allocations: 0 / 390.1 MB, free: 14.33 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.985e-05/0.542, allocations: 10.48 kB / 390.1 MB, free: 14.33 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.001452/0.5435, allocations: 0.6231 MB / 390.7 MB, free: 13.85 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.5436, allocations: 11.47 kB / 390.7 MB, free: 13.85 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001039/0.5437, allocations: 34.8 kB / 390.7 MB, free: 13.83 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003903/0.5441, allocations: 276.7 kB / 391 MB, free: 13.6 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.638e-05/0.5441, allocations: 18.62 kB / 391 MB, free: 13.6 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.188e-05/0.5442, allocations: 26.12 kB / 391.1 MB, free: 13.6 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008706/0.5451, allocations: 274.9 kB / 391.3 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.5451, allocations: 0 / 391.3 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.109e-05/0.5451, allocations: 6.25 kB / 391.3 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.5452, allocations: 7.656 kB / 391.3 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001048/0.5462, allocations: 257.9 kB / 391.6 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002493/0.5487, allocations: 1.085 MB / 392.7 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009794/0.5498, allocations: 181.3 kB / 392.9 MB, free: 12.97 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.406e-05/0.5498, allocations: 7.141 kB / 392.9 MB, free: 12.97 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006091/0.5505, allocations: 152.5 kB / 393 MB, free: 12.9 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 3.075e-06/0.5505, allocations: 0 / 393 MB, free: 12.9 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.001706/0.5522, allocations: 397.2 kB / 393.4 MB, free: 12.74 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.774e-05/0.5523, allocations: 81.08 kB / 393.5 MB, free: 12.64 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004539/0.5527, allocations: 322 kB / 393.8 MB, free: 12.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.188e-05/0.5528, allocations: 36.73 kB / 393.8 MB, free: 12.49 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.5529, allocations: 250.7 kB / 394.1 MB, free: 12.29 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.974e-05/0.553, allocations: 29.03 kB / 394.1 MB, free: 12.27 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.186e-05/0.553, allocations: 7.781 kB / 394.1 MB, free: 12.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.497e-05/0.5531, allocations: 320.9 kB / 394.4 MB, free: 11.96 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004507/0.5535, allocations: 98.61 kB / 394.5 MB, free: 11.95 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004839/0.554, allocations: 195.4 kB / 394.7 MB, free: 11.82 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005015/0.5545, allocations: 141 kB / 394.8 MB, free: 11.78 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.5546, allocations: 0 / 394.8 MB, free: 11.78 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001219/0.5558, allocations: 374.1 kB / 395.2 MB, free: 11.66 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.029e-05/0.5559, allocations: 39.84 kB / 395.3 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.5559, allocations: 3.938 kB / 395.3 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002393/0.5561, allocations: 29.55 kB / 395.3 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004121/0.5566, allocations: 59.44 kB / 395.3 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001005/0.5576, allocations: 1.311 MB / 396.7 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000557/0.5581, allocations: 53.88 kB / 396.7 MB, free: 10.33 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.278e-05/0.5582, allocations: 15.31 kB / 396.7 MB, free: 10.32 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.0002109/0.5584, allocations: 144.4 kB / 396.9 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.11e-05/0.5585, allocations: 33.47 kB / 396.9 MB, free: 10.19 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.526e-05/0.5585, allocations: 30.91 kB / 396.9 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.5586, allocations: 384 / 396.9 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.5586, allocations: 0 / 396.9 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.5586, allocations: 0 / 396.9 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004848/0.5591, allocations: 447.4 kB / 397.4 MB, free: 9.871 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.5591, allocations: 7.812 kB / 397.4 MB, free: 9.867 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002462/0.5594, allocations: 34.55 kB / 397.4 MB, free: 9.863 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001522/0.5595, allocations: 24.7 kB / 397.4 MB, free: 9.855 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.5596, allocations: 2.578 kB / 397.4 MB, free: 9.855 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009312/0.5605, allocations: 1.303 MB / 398.7 MB, free: 8.582 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/0.5605, allocations: 0 / 398.7 MB, free: 8.582 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009895/0.5615, allocations: 273.2 kB / 399 MB, free: 8.469 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/0.5617, allocations: 105.9 kB / 399.1 MB, free: 8.359 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.842e-05/0.5617, allocations: 6.875 kB / 399.1 MB, free: 8.359 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003903/0.5621, allocations: 23.11 kB / 399.1 MB, free: 8.359 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001176/0.5623, allocations: 21.12 kB / 399.2 MB, free: 8.355 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.5623, allocations: 5.859 kB / 399.2 MB, free: 8.355 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003327/0.5626, allocations: 225.5 kB / 399.4 MB, free: 8.27 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5626, allocations: 0 / 399.4 MB, free: 8.27 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005417/0.5632, allocations: 78.11 kB / 399.5 MB, free: 8.254 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.0001832/0.5634, allocations: 102.2 kB / 399.6 MB, free: 8.168 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001301/0.5647, allocations: 397.4 kB / 399.9 MB, free: 7.977 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.5647, allocations: 0 / 399.9 MB, free: 7.977 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005811/0.5653, allocations: 210.1 kB / 400.2 MB, free: 7.859 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003813/0.5657, allocations: 41.41 kB / 400.2 MB, free: 7.855 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.567, allocations: 0.552 MB / 400.7 MB, free: 7.504 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001994/0.5672, allocations: 0.761 MB / 401.5 MB, free: 6.805 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001282/0.5673, allocations: 26.84 kB / 401.5 MB, free: 6.797 MB / 314.7 MB Notification: Performance of SimCode: time 9.02e-07/0.5673, allocations: 0 / 401.5 MB, free: 6.797 MB / 314.7 MB Notification: Performance of Templates: time 0.00966/0.577, allocations: 4.29 MB / 405.8 MB, free: 6.434 MB / 314.7 MB