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.00213/0.00213, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001769/0.001769, allocations: 214.7 kB / 24.48 MB, free: 3.941 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.708/1.708, allocations: 230.6 MB / 258.2 MB, free: 7.781 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.001773/0.001773, allocations: 51.86 kB / 379 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3914/0.3932, allocations: 53.36 MB / 432.4 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004797/0.398, allocations: 2.727 MB / 435.1 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001595/0.3996, allocations: 0.705 MB / 435.8 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001922/0.3998, allocations: 4 kB / 435.8 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002116/0.4, allocations: 55.5 kB / 435.8 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002329/0.4002, allocations: 95.19 kB / 435.9 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003327/0.4006, allocations: 119.8 kB / 436.1 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005066/0.4011, allocations: 390.5 kB / 436.4 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002372/0.4013, allocations: 100.5 kB / 436.5 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002077/0.4015, allocations: 155.4 kB / 436.7 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002311/0.4017, allocations: 167.4 kB / 436.9 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.377e-05/0.4018, allocations: 39.94 kB / 436.9 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.99e-05/0.4019, allocations: 36 kB / 436.9 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.861e-05/0.402, allocations: 79.73 kB / 437 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001565/0.4021, allocations: 139.3 kB / 437.1 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005046/0.4026, allocations: 400.1 kB / 437.5 MB, free: 1.508 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.4026, allocations: 8 kB / 437.5 MB, free: 1.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4026, allocations: 0 / 437.5 MB, free: 1.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.4026, allocations: 0 / 437.5 MB, free: 1.5 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.001483/0.4041, allocations: 0.613 MB / 438.2 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.4042, allocations: 11.97 kB / 438.2 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.237e-05/0.4042, allocations: 36.7 kB / 438.2 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004825/0.4047, allocations: 237.9 kB / 438.4 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/0.4048, allocations: 20.88 kB / 438.5 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.947e-05/0.4048, allocations: 24.38 kB / 438.5 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007641/0.4056, allocations: 326.9 kB / 438.8 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.4056, allocations: 0 / 438.8 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.854e-05/0.4056, allocations: 12 kB / 438.8 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.4056, allocations: 4 kB / 438.8 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000845/0.4065, allocations: 273.9 kB / 439.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001852/0.4083, allocations: 0.9634 MB / 440 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009082/0.4092, allocations: 206.5 kB / 440.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000328/0.4096, allocations: 84.78 kB / 440.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.326e-05/0.4096, allocations: 3.938 kB / 440.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004638/0.41, allocations: 153.2 kB / 440.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.683e-06/0.4101, allocations: 4 kB / 440.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.00132/0.4114, allocations: 330.1 kB / 440.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.298e-05/0.4114, allocations: 81.11 kB / 440.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003632/0.4118, allocations: 293.7 kB / 441.2 MB, free: 13.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.4118, allocations: 29.73 kB / 441.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001861/0.412, allocations: 223.8 kB / 441.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.054e-05/0.4121, allocations: 35.69 kB / 441.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.4122, allocations: 53.92 kB / 441.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.4123, allocations: 330.8 kB / 441.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004074/0.4127, allocations: 133.8 kB / 442 MB, free: 12.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004826/0.4132, allocations: 240.7 kB / 442.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007664/0.414, allocations: 343.1 kB / 442.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.414, allocations: 0 / 442.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001041/0.415, allocations: 429.2 kB / 443 MB, free: 11.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.091e-05/0.4151, allocations: 38.2 kB / 443 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.4151, allocations: 8 kB / 443 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002007/0.4153, allocations: 28.84 kB / 443 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002986/0.4156, allocations: 67.88 kB / 443.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001245/0.4168, allocations: 1.272 MB / 444.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003731/0.4172, allocations: 51.8 kB / 444.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.984e-05/0.4172, allocations: 16 kB / 444.4 MB, free: 10.12 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.0001908/0.4174, allocations: 149.7 kB / 444.6 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.039e-05/0.4175, allocations: 19.86 kB / 444.6 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.502e-05/0.4175, allocations: 29.8 kB / 444.6 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.4175, allocations: 4 kB / 444.6 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.4175, allocations: 4.375 kB / 444.6 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.4176, allocations: 0 / 444.6 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004581/0.418, allocations: 354.9 kB / 445 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.418, allocations: 0 / 445 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001778/0.4182, allocations: 31.91 kB / 445 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001151/0.4183, allocations: 32.86 kB / 445 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.629e-05/0.4183, allocations: 4 kB / 445 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001086/0.4194, allocations: 1.268 MB / 446.3 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.4194, allocations: 4.031 kB / 446.3 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007912/0.4202, allocations: 270.6 kB / 446.6 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.112e-05/0.4203, allocations: 23.83 kB / 446.6 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.155e-05/0.4203, allocations: 8 kB / 446.6 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002442/0.4205, allocations: 35.89 kB / 446.6 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.429e-05/0.4206, allocations: 11.98 kB / 446.7 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.4206, allocations: 7.984 kB / 446.7 MB, free: 7.695 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002322/0.4209, allocations: 201.1 kB / 446.9 MB, free: 7.496 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4209, allocations: 0 / 446.9 MB, free: 7.496 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003858/0.4213, allocations: 79.84 kB / 446.9 MB, free: 7.418 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.0001497/0.4214, allocations: 95.25 kB / 447 MB, free: 7.312 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001087/0.4225, allocations: 428.4 kB / 447.5 MB, free: 6.863 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4225, allocations: 4.062 kB / 447.5 MB, free: 6.859 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004931/0.423, allocations: 214.5 kB / 447.7 MB, free: 6.637 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003401/0.4233, allocations: 43.22 kB / 447.7 MB, free: 6.598 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00116/0.4245, allocations: 493.2 kB / 448.2 MB, free: 6.086 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001411/0.4246, allocations: 142.9 kB / 448.3 MB, free: 5.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001236/0.4248, allocations: 30.28 kB / 448.4 MB, free: 5.898 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.5e-05/0.4248, allocations: 23.42 kB / 448.4 MB, free: 5.875 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4248, allocations: 0 / 448.4 MB, free: 5.875 MB / 350.1 MB Notification: Performance of Templates: time 0.008357/0.4332, allocations: 3.581 MB / 452 MB, free: 2.352 MB / 350.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 -s cvode -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: 5.3362343780027]