Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 112.5 kB / 18.45 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 207.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.484/1.484, allocations: 230.6 MB / 254.8 MB, free: 15.1 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 55.92 kB / 374.2 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09955/0.1011, allocations: 53.33 MB / 427.5 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004629/0.1057, allocations: 2.908 MB / 430.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001577/0.1073, allocations: 0.744 MB / 431.2 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001738/0.1075, allocations: 7.938 kB / 431.2 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001887/0.1076, allocations: 47.5 kB / 431.2 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002255/0.1079, allocations: 103.2 kB / 431.3 MB, free: 432 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003184/0.1082, allocations: 111.8 kB / 431.4 MB, free: 320 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2133/0.3215, allocations: 387.6 kB / 431.8 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003197/0.3218, allocations: 87.5 kB / 431.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003404/0.3221, allocations: 157 kB / 432.1 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002403/0.3224, allocations: 169.4 kB / 432.2 MB, free: 8.152 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.432e-05/0.3224, allocations: 37.34 kB / 432.3 MB, free: 8.152 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.783e-05/0.3225, allocations: 39.62 kB / 432.3 MB, free: 8.152 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.159e-05/0.3226, allocations: 76.33 kB / 432.4 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001749/0.3228, allocations: 174.5 kB / 432.5 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000487/0.3232, allocations: 397.6 kB / 432.9 MB, free: 8.035 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3233, allocations: 0 / 432.9 MB, free: 8.035 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3233, allocations: 0 / 432.9 MB, free: 8.035 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.3233, allocations: 0.5 kB / 432.9 MB, free: 8.035 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.001319/0.3246, allocations: 0.6854 MB / 433.6 MB, free: 7.547 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.3246, allocations: 9.344 kB / 433.6 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.498e-05/0.3247, allocations: 41.58 kB / 433.7 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003706/0.3251, allocations: 295.6 kB / 434 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/0.3251, allocations: 21.72 kB / 434 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.775e-05/0.3251, allocations: 23.19 kB / 434 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006285/0.3258, allocations: 326.5 kB / 434.3 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.3258, allocations: 8.438 kB / 434.3 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.778e-05/0.3258, allocations: 9.844 kB / 434.3 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.3258, allocations: 4.281 kB / 434.3 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007795/0.3266, allocations: 275 kB / 434.6 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00168/0.3283, allocations: 1.136 MB / 435.7 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008659/0.3291, allocations: 205.3 kB / 435.9 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003303/0.3295, allocations: 86.91 kB / 436 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.351e-05/0.3295, allocations: 3.891 kB / 436 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004436/0.3299, allocations: 156.1 kB / 436.2 MB, free: 6.566 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.823e-06/0.3299, allocations: 0.5625 kB / 436.2 MB, free: 6.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001369/0.3313, allocations: 411.5 kB / 436.6 MB, free: 6.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.374e-05/0.3313, allocations: 87.69 kB / 436.7 MB, free: 6.312 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003771/0.3317, allocations: 328.2 kB / 437 MB, free: 6.207 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.3317, allocations: 29.98 kB / 437 MB, free: 6.176 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.3319, allocations: 212.6 kB / 437.2 MB, free: 6.039 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.435e-05/0.3319, allocations: 35.64 kB / 437.3 MB, free: 6.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.96e-05/0.332, allocations: 53.28 kB / 437.3 MB, free: 5.996 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.357e-05/0.3321, allocations: 338.8 kB / 437.7 MB, free: 5.684 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003911/0.3325, allocations: 104.5 kB / 437.8 MB, free: 5.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004015/0.3329, allocations: 208.5 kB / 438 MB, free: 5.543 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007326/0.3336, allocations: 329.4 kB / 438.3 MB, free: 5.367 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.339e-06/0.3336, allocations: 2.25 kB / 438.3 MB, free: 5.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001024/0.3346, allocations: 401.1 kB / 438.7 MB, free: 5.277 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.603e-05/0.3347, allocations: 43.08 kB / 438.7 MB, free: 5.238 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.3347, allocations: 4.562 kB / 438.7 MB, free: 5.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002307/0.3349, allocations: 28.39 kB / 438.7 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003221/0.3352, allocations: 71.55 kB / 438.8 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009119/0.3361, allocations: 1.397 MB / 440.2 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000398/0.3365, allocations: 67.66 kB / 440.3 MB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.783e-05/0.3366, allocations: 11.86 kB / 440.3 MB, free: 3.844 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.0001393/0.3367, allocations: 141.6 kB / 440.4 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.49e-05/0.3367, allocations: 30.55 kB / 440.5 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.381e-05/0.3368, allocations: 28.91 kB / 440.5 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.3368, allocations: 10.53 kB / 440.5 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3368, allocations: 0 / 440.5 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3368, allocations: 5.547 kB / 440.5 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004323/0.3372, allocations: 450.5 kB / 440.9 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3372, allocations: 1.094 kB / 440.9 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/0.3374, allocations: 29.58 kB / 441 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001018/0.3375, allocations: 32.64 kB / 441 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.3375, allocations: 7.062 kB / 441 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006937/0.3382, allocations: 1.396 MB / 442.4 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.3382, allocations: 1.438 kB / 442.4 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007421/0.339, allocations: 275.5 kB / 442.7 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.235e-05/0.339, allocations: 107.4 kB / 442.8 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.649e-05/0.3391, allocations: 3.234 kB / 442.8 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000232/0.3393, allocations: 27.89 kB / 442.8 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.024e-05/0.3394, allocations: 23.34 kB / 442.8 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.335e-05/0.3394, allocations: 8.375 kB / 442.8 MB, free: 1.672 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002303/0.3396, allocations: 228.7 kB / 443.1 MB, free: 1.551 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3396, allocations: 0 / 443.1 MB, free: 1.551 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003761/0.34, allocations: 68.42 kB / 443.1 MB, free: 1.539 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.0001448/0.3402, allocations: 108.1 kB / 443.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009752/0.3411, allocations: 402.6 kB / 443.6 MB, free: 1.219 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3411, allocations: 1.469 kB / 443.6 MB, free: 1.219 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004465/0.3416, allocations: 208.7 kB / 443.8 MB, free: 1.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003426/0.3419, allocations: 52.16 kB / 443.9 MB, free: 1.066 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009907/0.3429, allocations: 0.5226 MB / 444.4 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001868/0.3431, allocations: 0.7529 MB / 445.2 MB, free: 40 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.23e-05/0.3432, allocations: 29.83 kB / 445.2 MB, free: 28 kB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3432, allocations: 0 / 445.2 MB, free: 28 kB / 350.1 MB Notification: Performance of Templates: time 0.008691/0.3519, allocations: 4.664 MB / 449.9 MB, free: 15.67 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 7.534669323009439]