Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001373/0.001373, allocations: 178.1 kB / 17.36 MB, free: 4.32 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.638/1.638, allocations: 205.6 MB / 223.7 MB, free: 8.938 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000803/0.0008034, allocations: 86.22 kB / 272.1 MB, free: 8.121 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002849/0.0002847, allocations: 8 kB / 329 MB, free: 15.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2466, allocations: 47.57 MB / 376.6 MB, free: 45.58 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003333/0.25, allocations: 2.425 MB / 379 MB, free: 43.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001622/0.2517, allocations: 0.7929 MB / 379.8 MB, free: 42.99 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004617/0.2522, allocations: 4.438 kB / 379.8 MB, free: 42.99 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00025/0.2525, allocations: 44.91 kB / 379.9 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004514/0.2529, allocations: 79.97 kB / 380 MB, free: 42.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004403/0.2534, allocations: 92.5 kB / 380 MB, free: 42.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006456/0.254, allocations: 374.5 kB / 380.4 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003124/0.2544, allocations: 113 kB / 380.5 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003115/0.2547, allocations: 120 kB / 380.6 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002892/0.255, allocations: 157.1 kB / 380.8 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.596e-05/0.2551, allocations: 17.94 kB / 380.8 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.926e-05/0.2552, allocations: 22.38 kB / 380.8 MB, free: 42.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.173e-05/0.2552, allocations: 63.47 kB / 380.9 MB, free: 42.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001919/0.2554, allocations: 173.6 kB / 381.1 MB, free: 42.16 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004594/0.2559, allocations: 371.2 kB / 381.4 MB, free: 41.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2559, allocations: 0 / 381.4 MB, free: 41.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.2559, allocations: 1.188 kB / 381.4 MB, free: 41.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.693e-05/0.256, allocations: 0 / 381.4 MB, free: 41.88 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.001474/0.2574, allocations: 0.6487 MB / 382.1 MB, free: 41.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.2575, allocations: 9.531 kB / 382.1 MB, free: 41.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001527/0.2577, allocations: 34 kB / 382.1 MB, free: 41.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004207/0.2581, allocations: 291 kB / 382.4 MB, free: 41.01 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.765e-05/0.2581, allocations: 23.2 kB / 382.4 MB, free: 41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.833e-05/0.2582, allocations: 28.48 kB / 382.5 MB, free: 40.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007211/0.2589, allocations: 301.6 kB / 382.7 MB, free: 40.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.2589, allocations: 0 / 382.7 MB, free: 40.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.844e-05/0.259, allocations: 9.406 kB / 382.8 MB, free: 40.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.259, allocations: 10.42 kB / 382.8 MB, free: 40.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009312/0.2599, allocations: 323.1 kB / 383.1 MB, free: 40.67 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001787/0.2617, allocations: 1.077 MB / 384.2 MB, free: 39.76 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007224/0.2625, allocations: 235.2 kB / 384.4 MB, free: 39.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002881/0.2628, allocations: 105.2 kB / 384.5 MB, free: 39.6 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.348e-05/0.2628, allocations: 1.031 kB / 384.5 MB, free: 39.6 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004453/0.2632, allocations: 173.1 kB / 384.7 MB, free: 39.47 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.813e-06/0.2633, allocations: 0 / 384.7 MB, free: 39.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.001234/0.2645, allocations: 450.8 kB / 385.1 MB, free: 39.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.094e-05/0.2646, allocations: 83.45 kB / 385.2 MB, free: 39.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004402/0.265, allocations: 326.1 kB / 385.5 MB, free: 38.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.265, allocations: 30.77 kB / 385.5 MB, free: 38.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001346/0.2652, allocations: 205.7 kB / 385.7 MB, free: 38.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.214e-05/0.2652, allocations: 32.36 kB / 385.8 MB, free: 38.63 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.383e-05/0.2652, allocations: 5.188 kB / 385.8 MB, free: 38.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.199e-05/0.2653, allocations: 337.4 kB / 386.1 MB, free: 38.29 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003318/0.2657, allocations: 112 kB / 386.2 MB, free: 38.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003679/0.266, allocations: 213.9 kB / 386.4 MB, free: 38.06 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006446/0.2667, allocations: 349.1 kB / 386.8 MB, free: 37.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.2667, allocations: 1.25 kB / 386.8 MB, free: 37.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008412/0.2676, allocations: 424.8 kB / 387.2 MB, free: 37.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.938e-05/0.2677, allocations: 223.6 kB / 387.4 MB, free: 37.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.2677, allocations: 0 / 387.4 MB, free: 37.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001832/0.2679, allocations: 36.84 kB / 387.4 MB, free: 37.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002301/0.2681, allocations: 67.89 kB / 387.5 MB, free: 37.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000733/0.2688, allocations: 1.307 MB / 388.8 MB, free: 35.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003362/0.2692, allocations: 63.75 kB / 388.9 MB, free: 35.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.729e-05/0.2692, allocations: 12 kB / 388.9 MB, free: 35.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.612e-06/0.2692, allocations: 2.812 kB / 388.9 MB, free: 35.59 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006454/0.2699, allocations: 358.4 kB / 389.2 MB, free: 35.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.2699, allocations: 4 kB / 389.2 MB, free: 35.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.541e-05/0.27, allocations: 24.84 kB / 389.3 MB, free: 35.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001984/0.2702, allocations: 63.83 kB / 389.3 MB, free: 35.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000596/0.2708, allocations: 1.292 MB / 390.6 MB, free: 33.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002852/0.2711, allocations: 55.81 kB / 390.7 MB, free: 33.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.984e-05/0.2711, allocations: 8 kB / 390.7 MB, free: 33.64 MB / 298.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 (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.0001347/0.2713, allocations: 221 kB / 390.9 MB, free: 33.42 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.593e-05/0.2713, allocations: 23.72 kB / 390.9 MB, free: 33.39 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.352e-05/0.2714, allocations: 33.83 kB / 390.9 MB, free: 33.36 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.2714, allocations: 0 / 390.9 MB, free: 33.36 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.2714, allocations: 11.94 kB / 391 MB, free: 33.35 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.2714, allocations: 3.984 kB / 391 MB, free: 33.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003946/0.2718, allocations: 443.2 kB / 391.4 MB, free: 32.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.2718, allocations: 0 / 391.4 MB, free: 32.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001522/0.272, allocations: 40.33 kB / 391.4 MB, free: 32.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.955e-05/0.2721, allocations: 28.81 kB / 391.5 MB, free: 32.78 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.2721, allocations: 11.94 kB / 391.5 MB, free: 32.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006003/0.2727, allocations: 1.296 MB / 392.8 MB, free: 31.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2727, allocations: 3.938 kB / 392.8 MB, free: 31.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005839/0.2733, allocations: 298.4 kB / 393.1 MB, free: 31.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.964e-05/0.2734, allocations: 104.8 kB / 393.2 MB, free: 30.9 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.896e-05/0.2734, allocations: 8 kB / 393.2 MB, free: 30.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001992/0.2736, allocations: 35.97 kB / 393.2 MB, free: 30.86 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.358e-05/0.2737, allocations: 19.97 kB / 393.2 MB, free: 30.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.2737, allocations: 0 / 393.2 MB, free: 30.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000187/0.2739, allocations: 235 kB / 393.5 MB, free: 30.61 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2739, allocations: 3.938 kB / 393.5 MB, free: 30.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004518/0.2744, allocations: 119.8 kB / 393.6 MB, free: 30.49 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 (10): * Single equations (assignments): 7 * 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.0001266/0.2745, allocations: 103.8 kB / 393.7 MB, free: 30.38 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001182/0.2757, allocations: 0.739 MB / 394.4 MB, free: 29.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2757, allocations: 0.6875 kB / 394.4 MB, free: 29.59 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003883/0.2761, allocations: 230.6 kB / 394.6 MB, free: 29.35 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003567/0.2765, allocations: 40.64 kB / 394.7 MB, free: 29.31 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008309/0.2773, allocations: 0.5814 MB / 395.3 MB, free: 28.7 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001601/0.2775, allocations: 0.7561 MB / 396 MB, free: 27.92 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001599/0.2777, allocations: 38.95 kB / 396.1 MB, free: 27.88 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.404e-05/0.2778, allocations: 27.44 kB / 396.1 MB, free: 27.85 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2778, allocations: 0 / 396.1 MB, free: 27.85 MB / 298.7 MB Notification: Performance of Templates: time 0.005847/0.2836, allocations: 3.337 MB / 399.4 MB, free: 24.54 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches