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.001508/0.001508, allocations: 109.8 kB / 19.17 MB, free: 3.871 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.001636/0.001636, allocations: 208.9 kB / 22.13 MB, free: 0.918 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.459/1.459, allocations: 230.4 MB / 255.4 MB, free: 15.04 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.001905/0.001905, allocations: 67.84 kB / 374.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1063, allocations: 53.32 MB / 428.1 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004543/0.1109, allocations: 2.907 MB / 431 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001473/0.1123, allocations: 0.7518 MB / 431.8 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001575/0.1125, allocations: 4 kB / 431.8 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001767/0.1127, allocations: 51.44 kB / 431.8 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002233/0.1129, allocations: 99.19 kB / 431.9 MB, free: 488 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002903/0.1132, allocations: 103.8 kB / 432 MB, free: 384 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.202/0.3152, allocations: 391.8 kB / 432.4 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003164/0.3155, allocations: 92.45 kB / 432.5 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003234/0.3158, allocations: 152.5 kB / 432.6 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002545/0.3161, allocations: 171.6 kB / 432.8 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.122e-05/0.3162, allocations: 35.91 kB / 432.8 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.537e-05/0.3162, allocations: 36.84 kB / 432.9 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.33e-05/0.3163, allocations: 80.27 kB / 433 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001656/0.3165, allocations: 171 kB / 433.1 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004875/0.317, allocations: 394.3 kB / 433.5 MB, free: 8.031 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.317, allocations: 0.5 kB / 433.5 MB, free: 8.031 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.317, allocations: 0 / 433.5 MB, free: 8.031 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.754e-06/0.317, allocations: 2.156 kB / 433.5 MB, free: 8.031 MB / 350.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.001348/0.3183, allocations: 0.6852 MB / 434.2 MB, free: 7.543 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.3184, allocations: 9.75 kB / 434.2 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.225e-05/0.3185, allocations: 37.08 kB / 434.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003587/0.3188, allocations: 302.3 kB / 434.5 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.68e-05/0.3188, allocations: 18.28 kB / 434.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.457e-05/0.3189, allocations: 31.72 kB / 434.6 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000627/0.3195, allocations: 318 kB / 434.9 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.3195, allocations: 5.25 kB / 434.9 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.795e-05/0.3196, allocations: 15.92 kB / 434.9 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.046e-06/0.3196, allocations: 4.469 kB / 434.9 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007669/0.3203, allocations: 276.7 kB / 435.2 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001639/0.322, allocations: 1.131 MB / 436.3 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008423/0.3228, allocations: 203.7 kB / 436.5 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003245/0.3231, allocations: 85.16 kB / 436.6 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.507e-05/0.3232, allocations: 2.594 kB / 436.6 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004233/0.3236, allocations: 157.4 kB / 436.8 MB, free: 6.555 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.914e-06/0.3236, allocations: 0 / 436.8 MB, free: 6.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001303/0.3249, allocations: 418.4 kB / 437.2 MB, free: 6.398 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.229e-05/0.3249, allocations: 83.77 kB / 437.2 MB, free: 6.301 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003526/0.3253, allocations: 328.4 kB / 437.6 MB, free: 6.195 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.3253, allocations: 29.58 kB / 437.6 MB, free: 6.164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.3254, allocations: 209.8 kB / 437.8 MB, free: 6.027 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.059e-05/0.3254, allocations: 38.64 kB / 437.8 MB, free: 6.008 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.31e-05/0.3255, allocations: 53.75 kB / 437.9 MB, free: 5.984 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.431e-05/0.3256, allocations: 339.6 kB / 438.2 MB, free: 5.672 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003582/0.326, allocations: 100.6 kB / 438.3 MB, free: 5.668 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003914/0.3263, allocations: 216.3 kB / 438.5 MB, free: 5.527 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006781/0.327, allocations: 328.3 kB / 438.9 MB, free: 5.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.327, allocations: 1.375 kB / 438.9 MB, free: 5.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009602/0.328, allocations: 404.8 kB / 439.3 MB, free: 5.258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.175e-05/0.328, allocations: 34.41 kB / 439.3 MB, free: 5.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/0.328, allocations: 9.562 kB / 439.3 MB, free: 5.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001833/0.3282, allocations: 30.27 kB / 439.3 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002778/0.3285, allocations: 61.8 kB / 439.4 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007905/0.3293, allocations: 1.408 MB / 440.8 MB, free: 3.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003646/0.3296, allocations: 64.97 kB / 440.9 MB, free: 3.828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.645e-05/0.3297, allocations: 11.67 kB / 440.9 MB, free: 3.828 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.0001271/0.3298, allocations: 146.7 kB / 441 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.814e-05/0.3298, allocations: 28.28 kB / 441 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.691e-05/0.3299, allocations: 28.39 kB / 441.1 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.3299, allocations: 1.75 kB / 441.1 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3299, allocations: 8.625 kB / 441.1 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3299, allocations: 5.656 kB / 441.1 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000397/0.3303, allocations: 448.3 kB / 441.5 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.3303, allocations: 1.031 kB / 441.5 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001809/0.3305, allocations: 29.53 kB / 441.6 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001059/0.3306, allocations: 33.53 kB / 441.6 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.3306, allocations: 5.766 kB / 441.6 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006848/0.3313, allocations: 1.398 MB / 443 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3313, allocations: 1.609 kB / 443 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007499/0.332, allocations: 276.6 kB / 443.3 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.097e-05/0.3321, allocations: 108.3 kB / 443.4 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.659e-05/0.3321, allocations: 1.625 kB / 443.4 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002288/0.3324, allocations: 28.56 kB / 443.4 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.774e-05/0.3325, allocations: 24.3 kB / 443.4 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.3325, allocations: 7.219 kB / 443.4 MB, free: 1.691 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000229/0.3327, allocations: 232.6 kB / 443.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3327, allocations: 0 / 443.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000366/0.3331, allocations: 68.42 kB / 443.7 MB, free: 1.559 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.0001306/0.3332, allocations: 107.3 kB / 443.8 MB, free: 1.461 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00101/0.3342, allocations: 400.3 kB / 444.2 MB, free: 1.238 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3342, allocations: 0 / 444.2 MB, free: 1.238 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004471/0.3347, allocations: 208.8 kB / 444.4 MB, free: 1.109 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003452/0.335, allocations: 51.75 kB / 444.5 MB, free: 1.086 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001014/0.336, allocations: 0.5128 MB / 445 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000188/0.3362, allocations: 0.7531 MB / 445.7 MB, free: 60 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.084e-05/0.3363, allocations: 30.91 kB / 445.8 MB, free: 48 kB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3363, allocations: 0 / 445.8 MB, free: 48 kB / 350.1 MB Notification: Performance of Templates: time 0.00865/0.3449, allocations: 4.662 MB / 450.4 MB, free: 15.69 MB / 366.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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 7.486072696046904]