Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001458/0.001458, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001474/0.001474, allocations: 213.2 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.468/1.468, allocations: 230.6 MB / 258.2 MB, free: 8.051 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001949/0.001949, allocations: 68.75 kB / 379.1 MB, free: 2.613 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3165/0.3185, allocations: 53.36 MB / 432.4 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.005665/0.3241, allocations: 2.948 MB / 435.4 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001947/0.3261, allocations: 0.7362 MB / 436.1 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000321/0.3264, allocations: 7.938 kB / 436.1 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002515/0.3267, allocations: 55.5 kB / 436.2 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003761/0.327, allocations: 95.19 kB / 436.3 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004404/0.3275, allocations: 119.7 kB / 436.4 MB, free: 3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006345/0.3281, allocations: 386.5 kB / 436.8 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002668/0.3284, allocations: 100.5 kB / 436.9 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002956/0.3287, allocations: 155.4 kB / 437 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003003/0.329, allocations: 175.2 kB / 437.2 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.754e-05/0.3291, allocations: 40 kB / 437.2 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.57e-05/0.3291, allocations: 36 kB / 437.3 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.197e-05/0.3292, allocations: 79.69 kB / 437.3 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002114/0.3294, allocations: 167.1 kB / 437.5 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005574/0.33, allocations: 400.1 kB / 437.9 MB, free: 1.496 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.33, allocations: 0 / 437.9 MB, free: 1.496 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.33, allocations: 0 / 437.9 MB, free: 1.496 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.618e-05/0.33, allocations: 4 kB / 437.9 MB, free: 1.492 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.001525/0.3315, allocations: 0.6092 MB / 438.5 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.3316, allocations: 8.031 kB / 438.5 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.76e-05/0.3317, allocations: 36.7 kB / 438.6 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004878/0.3322, allocations: 241.8 kB / 438.8 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.115e-05/0.3322, allocations: 16.88 kB / 438.8 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.845e-05/0.3322, allocations: 28.38 kB / 438.8 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007323/0.333, allocations: 331 kB / 439.2 MB, free: 164 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.333, allocations: 0 / 439.2 MB, free: 164 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.621e-05/0.333, allocations: 4 kB / 439.2 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.978e-06/0.333, allocations: 8 kB / 439.2 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008209/0.3338, allocations: 273.8 kB / 439.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002049/0.3359, allocations: 1.103 MB / 440.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007947/0.3367, allocations: 202.5 kB / 440.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003061/0.337, allocations: 80.8 kB / 440.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.804e-05/0.337, allocations: 4.188 kB / 440.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00044/0.3375, allocations: 160.9 kB / 441 MB, free: 14.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.773e-06/0.3375, allocations: 0 / 441 MB, free: 14.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001363/0.3388, allocations: 338 kB / 441.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.028e-05/0.3389, allocations: 89.08 kB / 441.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004556/0.3393, allocations: 324.5 kB / 441.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.171e-05/0.3394, allocations: 29.7 kB / 441.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002032/0.3396, allocations: 211.8 kB / 441.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.993e-05/0.3396, allocations: 39.73 kB / 442 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.3397, allocations: 53.89 kB / 442 MB, free: 13.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.3399, allocations: 338.8 kB / 442.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003529/0.3403, allocations: 100.2 kB / 442.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004306/0.3407, allocations: 211.7 kB / 442.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000749/0.3414, allocations: 339.5 kB / 443 MB, free: 12.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.648e-06/0.3414, allocations: 0 / 443 MB, free: 12.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001008/0.3425, allocations: 399.9 kB / 443.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.407e-05/0.3425, allocations: 41.75 kB / 443.4 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.3425, allocations: 4 kB / 443.4 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000192/0.3427, allocations: 32.78 kB / 443.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002777/0.343, allocations: 63.88 kB / 443.5 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001248/0.3442, allocations: 1.303 MB / 444.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003635/0.3446, allocations: 63.84 kB / 444.9 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.89e-05/0.3446, allocations: 16 kB / 444.9 MB, free: 9.973 MB / 350.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.0001703/0.3448, allocations: 141.8 kB / 445.1 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.672e-05/0.3448, allocations: 27.81 kB / 445.1 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.344e-05/0.3449, allocations: 30.61 kB / 445.1 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.3449, allocations: 0 / 445.1 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.3449, allocations: 11.94 kB / 445.1 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3449, allocations: 3.984 kB / 445.1 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005218/0.3454, allocations: 418.2 kB / 445.5 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.3454, allocations: 0 / 445.5 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001782/0.3456, allocations: 31.95 kB / 445.6 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001114/0.3457, allocations: 36.75 kB / 445.6 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/0.3457, allocations: 0 / 445.6 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001233/0.347, allocations: 1.291 MB / 446.9 MB, free: 7.816 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.347, allocations: 0 / 446.9 MB, free: 7.816 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007579/0.3477, allocations: 278.8 kB / 447.2 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.142e-05/0.3478, allocations: 27.84 kB / 447.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.574e-05/0.3478, allocations: 0 / 447.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002245/0.3481, allocations: 31.97 kB / 447.2 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.276e-05/0.3481, allocations: 19.91 kB / 447.2 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.3481, allocations: 8 kB / 447.2 MB, free: 7.434 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003286/0.3485, allocations: 227.1 kB / 447.5 MB, free: 7.211 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3485, allocations: 0 / 447.5 MB, free: 7.211 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003629/0.3488, allocations: 75.89 kB / 447.5 MB, free: 7.137 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.0001471/0.349, allocations: 103.2 kB / 447.6 MB, free: 7.023 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001153/0.3501, allocations: 410 kB / 448 MB, free: 6.598 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3501, allocations: 0 / 448 MB, free: 6.598 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005031/0.3506, allocations: 211.3 kB / 448.3 MB, free: 6.379 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.351, allocations: 45.34 kB / 448.3 MB, free: 6.336 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001118/0.3521, allocations: 497.1 kB / 448.8 MB, free: 5.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00056/0.3527, allocations: 0.7518 MB / 449.5 MB, free: 5.043 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001269/0.3528, allocations: 34.97 kB / 449.6 MB, free: 5.008 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.404e-05/0.3529, allocations: 23.44 kB / 449.6 MB, free: 4.984 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3529, allocations: 0 / 449.6 MB, free: 4.984 MB / 350.1 MB Notification: Performance of Templates: time 0.008291/0.3611, allocations: 3.421 MB / 453 MB, free: 1.598 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.49838094227016]