Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001933/0.001933, allocations: 120.2 kB / 21.94 MB, free: 28 kB / 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.002328/0.002328, allocations: 208.8 kB / 25.24 MB, free: 3.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.472/1.472, allocations: 207.6 MB / 236 MB, free: 9.98 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002053/0.002053, allocations: 51.92 kB / 348.5 MB, free: 9.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3057/0.3077, allocations: 49.15 MB / 397.6 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004083/0.3118, allocations: 2.862 MB / 400.5 MB, free: 7.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001335/0.3132, allocations: 0.764 MB / 401.3 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001718/0.3133, allocations: 4.844 kB / 401.3 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001948/0.3135, allocations: 56.41 kB / 401.3 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001978/0.3137, allocations: 99.05 kB / 401.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003359/0.3141, allocations: 103.5 kB / 401.5 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004624/0.3145, allocations: 399.3 kB / 401.9 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002177/0.3147, allocations: 108.2 kB / 402 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000199/0.3149, allocations: 156.4 kB / 402.2 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002667/0.3152, allocations: 175.3 kB / 402.3 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.015e-05/0.3153, allocations: 41.09 kB / 402.4 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.739e-05/0.3153, allocations: 35.94 kB / 402.4 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.388e-05/0.3154, allocations: 78.8 kB / 402.5 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001803/0.3156, allocations: 171.8 kB / 402.7 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000521/0.3161, allocations: 399.5 kB / 403 MB, free: 6.023 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.3161, allocations: 0.7031 kB / 403 MB, free: 6.023 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.3161, allocations: 0 / 403 MB, free: 6.023 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.3161, allocations: 0 / 403 MB, free: 6.023 MB / 318.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.00131/0.3174, allocations: 0.6222 MB / 403.7 MB, free: 5.566 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.3175, allocations: 9.344 kB / 403.7 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.082e-05/0.3176, allocations: 33.62 kB / 403.7 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003948/0.318, allocations: 241.9 kB / 403.9 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.741e-05/0.318, allocations: 19.25 kB / 404 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.242e-05/0.318, allocations: 25.31 kB / 404 MB, free: 5.328 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006459/0.3187, allocations: 285.6 kB / 404.3 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.3187, allocations: 9.406 kB / 404.3 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.728e-05/0.3187, allocations: 10.05 kB / 404.3 MB, free: 5.195 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.679e-06/0.3187, allocations: 6.594 kB / 404.3 MB, free: 5.195 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008059/0.3195, allocations: 277.7 kB / 404.6 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001768/0.3213, allocations: 1.013 MB / 405.6 MB, free: 4.441 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007085/0.322, allocations: 190.1 kB / 405.8 MB, free: 4.379 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002606/0.3223, allocations: 81.42 kB / 405.8 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.643e-05/0.3223, allocations: 2.297 kB / 405.8 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004037/0.3227, allocations: 154.1 kB / 406 MB, free: 4.262 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.493e-06/0.3227, allocations: 1.188 kB / 406 MB, free: 4.262 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.00114/0.3239, allocations: 321.1 kB / 406.3 MB, free: 4.145 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.258e-05/0.3239, allocations: 84.81 kB / 406.4 MB, free: 4.047 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003602/0.3243, allocations: 320.6 kB / 406.7 MB, free: 3.875 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/0.3243, allocations: 31.05 kB / 406.7 MB, free: 3.84 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.3244, allocations: 207 kB / 406.9 MB, free: 3.664 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.233e-05/0.3244, allocations: 41.61 kB / 407 MB, free: 3.633 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.895e-05/0.3245, allocations: 63.44 kB / 407 MB, free: 3.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.436e-05/0.3246, allocations: 332.5 kB / 407.4 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003142/0.3249, allocations: 100.8 kB / 407.5 MB, free: 3.238 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003298/0.3253, allocations: 198 kB / 407.7 MB, free: 3.078 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005901/0.3259, allocations: 314.1 kB / 408 MB, free: 2.848 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.3259, allocations: 1.188 kB / 408 MB, free: 2.848 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008325/0.3267, allocations: 392 kB / 408.3 MB, free: 2.664 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.621e-05/0.3267, allocations: 35.72 kB / 408.4 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.3267, allocations: 2.656 kB / 408.4 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001901/0.3269, allocations: 35.06 kB / 408.4 MB, free: 2.617 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000254/0.3272, allocations: 58.94 kB / 408.5 MB, free: 2.613 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000797/0.328, allocations: 1.302 MB / 409.8 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003319/0.3283, allocations: 53.02 kB / 409.8 MB, free: 1.285 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.589e-05/0.3283, allocations: 15.52 kB / 409.8 MB, free: 1.281 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003063/0.3286, allocations: 186.7 kB / 410 MB, free: 1.164 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002673/0.3289, allocations: 195.9 kB / 410.2 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004773/0.3294, allocations: 297.2 kB / 410.5 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.385e-06/0.3294, allocations: 3.984 kB / 410.5 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0007642/0.3302, allocations: 360.8 kB / 410.9 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.3302, allocations: 35 kB / 410.9 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.3302, allocations: 4.438 kB / 410.9 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001041/0.3303, allocations: 33.73 kB / 410.9 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002202/0.3305, allocations: 57.86 kB / 411 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001004/0.3315, allocations: 1.295 MB / 412.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003027/0.3318, allocations: 33.59 kB / 412.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.227e-05/0.3318, allocations: 15.33 kB / 412.3 MB, free: 15.22 MB / 334.1 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 (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.0001727/0.332, allocations: 208 kB / 412.5 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.089e-05/0.3321, allocations: 28.94 kB / 412.6 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.725e-05/0.3321, allocations: 29.3 kB / 412.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.3321, allocations: 1.734 kB / 412.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.3321, allocations: 5 kB / 412.6 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.3322, allocations: 1.953 kB / 412.6 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005758/0.3327, allocations: 425.2 kB / 413 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3327, allocations: 1.344 kB / 413 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001591/0.3329, allocations: 27.61 kB / 413 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.641e-05/0.333, allocations: 24.94 kB / 413.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.732e-05/0.333, allocations: 6.297 kB / 413.1 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001144/0.3341, allocations: 1.296 MB / 414.4 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3341, allocations: 5.656 kB / 414.4 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006703/0.3348, allocations: 270.5 kB / 414.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.151e-05/0.3349, allocations: 34.48 kB / 414.7 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.077e-05/0.3349, allocations: 6.5 kB / 414.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002058/0.3351, allocations: 20.03 kB / 414.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.537e-05/0.3352, allocations: 18.53 kB / 414.7 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.3352, allocations: 7 kB / 414.7 MB, free: 13.03 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002654/0.3355, allocations: 226.8 kB / 415 MB, free: 12.89 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3355, allocations: 0 / 415 MB, free: 12.89 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005507/0.336, allocations: 123.5 kB / 415.1 MB, free: 12.87 MB / 334.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 (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.000157/0.3362, allocations: 101.1 kB / 415.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0015/0.3377, allocations: 0.6827 MB / 415.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.3377, allocations: 0.5 kB / 415.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004451/0.3381, allocations: 207.3 kB / 416.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003639/0.3385, allocations: 48.31 kB / 416.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001146/0.3397, allocations: 0.5098 MB / 416.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004382/0.3401, allocations: 0.7559 MB / 417.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.362e-05/0.3402, allocations: 23.41 kB / 417.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3402, allocations: 0 / 417.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of Templates: time 0.01046/0.3507, allocations: 4.691 MB / 422.1 MB, free: 8.465 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.864458828000352]