Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001808/0.001808, allocations: 113 kB / 19.04 MB, free: 3.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002072/0.002072, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.53/1.53, allocations: 225.6 MB / 250.8 MB, free: 13.35 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001753/0.001753, allocations: 55.91 kB / 368.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.333/0.3348, allocations: 52.14 MB / 420.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.005077/0.3399, allocations: 2.915 MB / 423.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002061/0.3419, allocations: 0.7128 MB / 424.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004024/0.3423, allocations: 4 kB / 424.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000301/0.3426, allocations: 51.5 kB / 424.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004696/0.3431, allocations: 99.19 kB / 424.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004836/0.3436, allocations: 107.8 kB / 424.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006936/0.3443, allocations: 394.5 kB / 425.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002783/0.3446, allocations: 99.89 kB / 425.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003229/0.3449, allocations: 151.4 kB / 425.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003666/0.3453, allocations: 171.3 kB / 425.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.333e-05/0.3453, allocations: 39.94 kB / 425.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001043/0.3455, allocations: 36 kB / 425.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.586e-05/0.3455, allocations: 71.75 kB / 425.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002416/0.3458, allocations: 175.1 kB / 425.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005879/0.3464, allocations: 395.7 kB / 426.3 MB, free: 9.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3464, allocations: 0 / 426.3 MB, free: 9.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3464, allocations: 0 / 426.3 MB, free: 9.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.894e-05/0.3464, allocations: 0 / 426.3 MB, free: 9.68 MB / 334.1 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.00175/0.3482, allocations: 0.6884 MB / 427 MB, free: 8.938 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.3482, allocations: 8.031 kB / 427 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.3483, allocations: 40.69 kB / 427 MB, free: 8.891 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005716/0.3489, allocations: 303.6 kB / 427.3 MB, free: 8.555 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.629e-05/0.3489, allocations: 20.94 kB / 427.3 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.647e-05/0.349, allocations: 24.38 kB / 427.4 MB, free: 8.512 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008132/0.3498, allocations: 327.9 kB / 427.7 MB, free: 8.184 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.3498, allocations: 0 / 427.7 MB, free: 8.184 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.532e-05/0.3498, allocations: 12 kB / 427.7 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.3499, allocations: 4 kB / 427.7 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008408/0.3507, allocations: 278 kB / 428 MB, free: 7.895 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002164/0.3529, allocations: 1.13 MB / 429.1 MB, free: 6.676 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008558/0.3537, allocations: 202.5 kB / 429.3 MB, free: 6.469 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003208/0.354, allocations: 96.91 kB / 429.4 MB, free: 6.371 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.924e-05/0.3541, allocations: 3.938 kB / 429.4 MB, free: 6.367 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004857/0.3545, allocations: 153 kB / 429.5 MB, free: 6.199 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.3545, allocations: 0 / 429.5 MB, free: 6.199 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001415/0.356, allocations: 407.2 kB / 429.9 MB, free: 5.773 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.098e-05/0.356, allocations: 81.11 kB / 430 MB, free: 5.676 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004841/0.3565, allocations: 328.5 kB / 430.3 MB, free: 5.352 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.525e-05/0.3566, allocations: 29.7 kB / 430.4 MB, free: 5.316 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002079/0.3568, allocations: 220 kB / 430.6 MB, free: 5.098 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.026e-05/0.3568, allocations: 31.73 kB / 430.6 MB, free: 5.066 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.3569, allocations: 57.89 kB / 430.7 MB, free: 5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002142/0.3572, allocations: 330.8 kB / 431 MB, free: 4.668 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003726/0.3575, allocations: 104.1 kB / 431.1 MB, free: 4.566 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004434/0.358, allocations: 214.9 kB / 431.3 MB, free: 4.305 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00079/0.3588, allocations: 327.9 kB / 431.6 MB, free: 3.926 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3588, allocations: 4 kB / 431.6 MB, free: 3.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001041/0.3598, allocations: 403.8 kB / 432 MB, free: 3.512 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.72e-05/0.3599, allocations: 45.62 kB / 432.1 MB, free: 3.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.3599, allocations: 4 kB / 432.1 MB, free: 3.457 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002255/0.3601, allocations: 33.03 kB / 432.1 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002805/0.3604, allocations: 59.89 kB / 432.2 MB, free: 3.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001451/0.3618, allocations: 1.41 MB / 433.6 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003845/0.3622, allocations: 55.7 kB / 433.6 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.642e-05/0.3623, allocations: 15.98 kB / 433.6 MB, free: 1.734 MB / 334.1 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 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * 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.0001978/0.3625, allocations: 153.8 kB / 433.8 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.409e-05/0.3625, allocations: 23.86 kB / 433.8 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.057e-05/0.3626, allocations: 26.61 kB / 433.8 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.3626, allocations: 384 / 433.8 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.3626, allocations: 7.938 kB / 433.9 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-06/0.3626, allocations: 0 / 433.9 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005922/0.3632, allocations: 463.1 kB / 434.3 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.3632, allocations: 3.938 kB / 434.3 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001798/0.3634, allocations: 35.97 kB / 434.3 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001187/0.3635, allocations: 32.77 kB / 434.4 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.3635, allocations: 0 / 434.4 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001355/0.3649, allocations: 1.395 MB / 435.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.3649, allocations: 8.094 kB / 435.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007788/0.3656, allocations: 270.4 kB / 436 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/0.3658, allocations: 101 kB / 436.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.023e-05/0.3658, allocations: 11.98 kB / 436.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002343/0.366, allocations: 23.97 kB / 436.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.634e-05/0.3661, allocations: 15.92 kB / 436.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.3661, allocations: 4 kB / 436.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002981/0.3664, allocations: 239 kB / 436.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3664, allocations: 0 / 436.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003786/0.3668, allocations: 71.89 kB / 436.5 MB, free: 14.62 MB / 350.1 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.0001798/0.367, allocations: 104 kB / 436.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001086/0.3681, allocations: 406.6 kB / 437 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3681, allocations: 0 / 437 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005186/0.3686, allocations: 210.6 kB / 437.2 MB, free: 13.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004181/0.369, allocations: 52.78 kB / 437.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001287/0.3703, allocations: 0.5111 MB / 437.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004762/0.3708, allocations: 0.748 MB / 438.5 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000141/0.3709, allocations: 38.95 kB / 438.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.477e-05/0.371, allocations: 19.44 kB / 438.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of SimCode: time 9.11e-07/0.371, allocations: 4 kB / 438.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of Templates: time 0.00893/0.3799, allocations: 3.346 MB / 441.9 MB, free: 9.129 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (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) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.754656555131078]