Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008951/0.0008955, allocations: 183.1 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 225.7 MB / 243.2 MB, free: 8.512 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007042/0.0007043, allocations: 94.5 kB / 294.4 MB, free: 9.523 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002439/0.0002439, allocations: 12 kB / 354.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2474/0.2477, allocations: 50.41 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.002506/0.2502, allocations: 2.457 MB / 407 MB, free: 28.87 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001222/0.2515, allocations: 0.749 MB / 407.8 MB, free: 28.1 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001517/0.2517, allocations: 4.562 kB / 407.8 MB, free: 28.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001664/0.2518, allocations: 38.38 kB / 407.8 MB, free: 28.06 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001751/0.252, allocations: 79.39 kB / 407.9 MB, free: 27.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002664/0.2523, allocations: 99.89 kB / 408 MB, free: 27.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002906/0.2526, allocations: 371.2 kB / 408.4 MB, free: 27.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002285/0.2528, allocations: 107.5 kB / 408.5 MB, free: 27.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001352/0.253, allocations: 135.4 kB / 408.6 MB, free: 27.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001533/0.2531, allocations: 151.2 kB / 408.8 MB, free: 27.13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.912e-05/0.2532, allocations: 21.06 kB / 408.8 MB, free: 27.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.288e-05/0.2532, allocations: 16 kB / 408.8 MB, free: 27.1 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.346e-05/0.2533, allocations: 63.67 kB / 408.9 MB, free: 27.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001363/0.2534, allocations: 167.8 kB / 409 MB, free: 26.87 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002696/0.2537, allocations: 368.1 kB / 409.4 MB, free: 26.51 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.2537, allocations: 4 kB / 409.4 MB, free: 26.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.2537, allocations: 0 / 409.4 MB, free: 26.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.2538, allocations: 3.938 kB / 409.4 MB, free: 26.5 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001052/0.2548, allocations: 0.6451 MB / 410 MB, free: 25.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.2549, allocations: 12.03 kB / 410 MB, free: 25.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.198e-05/0.2549, allocations: 32.56 kB / 410.1 MB, free: 25.76 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003311/0.2553, allocations: 295.6 kB / 410.4 MB, free: 25.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.709e-05/0.2553, allocations: 20.94 kB / 410.4 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.004e-05/0.2554, allocations: 28.31 kB / 410.4 MB, free: 25.38 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006516/0.256, allocations: 343.9 kB / 410.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.256, allocations: 0 / 410.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.604e-05/0.2561, allocations: 8 kB / 410.8 MB, free: 25.03 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.2561, allocations: 8 kB / 410.8 MB, free: 25.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007048/0.2568, allocations: 298.1 kB / 411.1 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001513/0.2583, allocations: 1.161 MB / 412.2 MB, free: 23.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007734/0.2591, allocations: 238.5 kB / 412.4 MB, free: 23.24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000275/0.2594, allocations: 104.8 kB / 412.6 MB, free: 23.13 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.2594, allocations: 0 / 412.6 MB, free: 23.13 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004205/0.2599, allocations: 181 kB / 412.7 MB, free: 22.94 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/0.2599, allocations: 0 / 412.7 MB, free: 22.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.001107/0.261, allocations: 451.4 kB / 413.2 MB, free: 22.47 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.393e-05/0.261, allocations: 85.11 kB / 413.3 MB, free: 22.37 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002712/0.2613, allocations: 328.4 kB / 413.6 MB, free: 22.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.2613, allocations: 33.64 kB / 413.6 MB, free: 22 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.866e-05/0.2614, allocations: 207.5 kB / 413.8 MB, free: 21.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.885e-05/0.2615, allocations: 39.53 kB / 413.8 MB, free: 21.76 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.273e-05/0.2615, allocations: 8 kB / 413.9 MB, free: 21.75 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.48e-05/0.2615, allocations: 330.8 kB / 414.2 MB, free: 21.42 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003068/0.2619, allocations: 120.2 kB / 414.3 MB, free: 21.3 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003154/0.2622, allocations: 219 kB / 414.5 MB, free: 21.03 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005912/0.2628, allocations: 359.9 kB / 414.9 MB, free: 20.62 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.2628, allocations: 4 kB / 414.9 MB, free: 20.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008058/0.2636, allocations: 431.6 kB / 415.3 MB, free: 20.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.473e-05/0.2636, allocations: 41.86 kB / 415.3 MB, free: 20.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.2637, allocations: 4 kB / 415.3 MB, free: 20.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001827/0.2639, allocations: 24.84 kB / 415.4 MB, free: 20.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.2641, allocations: 75.88 kB / 415.4 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007131/0.2648, allocations: 1.3 MB / 416.7 MB, free: 18.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003083/0.2652, allocations: 67.8 kB / 416.8 MB, free: 18.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.381e-05/0.2652, allocations: 12 kB / 416.8 MB, free: 18.52 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001104/0.2653, allocations: 149.7 kB / 417 MB, free: 18.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.813e-05/0.2653, allocations: 27.62 kB / 417 MB, free: 18.33 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.703e-05/0.2654, allocations: 30.61 kB / 417 MB, free: 18.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.2654, allocations: 4 kB / 417 MB, free: 18.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.2654, allocations: 7.938 kB / 417 MB, free: 18.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.2654, allocations: 0 / 417 MB, free: 18.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003017/0.2657, allocations: 455.1 kB / 417.5 MB, free: 17.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.2657, allocations: 0 / 417.5 MB, free: 17.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000161/0.2659, allocations: 43.98 kB / 417.5 MB, free: 17.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.989e-05/0.266, allocations: 28.83 kB / 417.5 MB, free: 17.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.266, allocations: 0 / 417.5 MB, free: 17.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005708/0.2666, allocations: 1.303 MB / 418.8 MB, free: 16.28 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2666, allocations: 0 / 418.8 MB, free: 16.28 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006233/0.2672, allocations: 302.4 kB / 419.1 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.061e-05/0.2673, allocations: 108.7 kB / 419.2 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.527e-05/0.2673, allocations: 3.984 kB / 419.2 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002122/0.2675, allocations: 39.97 kB / 419.3 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.161e-05/0.2676, allocations: 12.08 kB / 419.3 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.213e-05/0.2676, allocations: 11.92 kB / 419.3 MB, free: 15.77 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001847/0.2678, allocations: 227.1 kB / 419.5 MB, free: 15.55 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.2678, allocations: 0 / 419.5 MB, free: 15.55 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002874/0.2681, allocations: 71.84 kB / 419.6 MB, free: 15.48 MB / 298.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001143/0.2682, allocations: 107.2 kB / 419.7 MB, free: 15.36 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008249/0.2691, allocations: 438.1 kB / 420.1 MB, free: 14.91 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2691, allocations: 0 / 420.1 MB, free: 14.91 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003861/0.2695, allocations: 235.2 kB / 420.4 MB, free: 14.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003169/0.2698, allocations: 50.38 kB / 420.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007849/0.2706, allocations: 0.589 MB / 421 MB, free: 13.99 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001417/0.2708, allocations: 0.7521 MB / 421.8 MB, free: 13.21 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001197/0.2709, allocations: 34.95 kB / 421.8 MB, free: 13.18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.283e-05/0.271, allocations: 27.42 kB / 421.8 MB, free: 13.16 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.271, allocations: 0 / 421.8 MB, free: 13.16 MB / 298.7 MB Notification: Performance of Templates: time 0.005281/0.2762, allocations: 2.955 MB / 424.8 MB, free: 10.22 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches