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.001426/0.001426, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001484/0.001484, allocations: 214.7 kB / 23.75 MB, free: 4.668 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.49/1.49, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.002382/0.002382, allocations: 43.92 kB / 378.3 MB, free: 2.586 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2831, allocations: 53.37 MB / 431.7 MB, free: 7.059 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004629/0.2878, allocations: 2.939 MB / 434.6 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001407/0.2892, allocations: 0.7401 MB / 435.3 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000165/0.2893, allocations: 8 kB / 435.3 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.2895, allocations: 55.44 kB / 435.4 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002038/0.2897, allocations: 99.17 kB / 435.5 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002953/0.29, allocations: 115.9 kB / 435.6 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004637/0.2905, allocations: 382.5 kB / 436 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002166/0.2907, allocations: 104.5 kB / 436.1 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000196/0.2909, allocations: 151.4 kB / 436.2 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002391/0.2911, allocations: 179.3 kB / 436.4 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.345e-05/0.2912, allocations: 36 kB / 436.4 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.956e-05/0.2913, allocations: 39.94 kB / 436.5 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.598e-05/0.2913, allocations: 71.77 kB / 436.5 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001785/0.2915, allocations: 167.1 kB / 436.7 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005108/0.292, allocations: 396 kB / 437.1 MB, free: 1.594 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.292, allocations: 4 kB / 437.1 MB, free: 1.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.292, allocations: 4 kB / 437.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.321e-06/0.292, allocations: 0 / 437.1 MB, free: 1.586 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.001398/0.2934, allocations: 0.6169 MB / 437.7 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.2935, allocations: 8.031 kB / 437.7 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.318e-05/0.2936, allocations: 40.7 kB / 437.8 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004241/0.294, allocations: 241.8 kB / 438 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.294, allocations: 16.88 kB / 438 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.619e-05/0.294, allocations: 28.38 kB / 438.1 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007083/0.2948, allocations: 326.9 kB / 438.4 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.2948, allocations: 0 / 438.4 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.569e-05/0.2948, allocations: 4 kB / 438.4 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.2948, allocations: 8 kB / 438.4 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008192/0.2956, allocations: 277.8 kB / 438.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001878/0.2975, allocations: 1.091 MB / 439.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008037/0.2983, allocations: 210.5 kB / 440 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003019/0.2986, allocations: 84.77 kB / 440 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.816e-05/0.2986, allocations: 7.984 kB / 440 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004227/0.2991, allocations: 157.1 kB / 440.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.2991, allocations: 0 / 440.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001222/0.3003, allocations: 330.1 kB / 440.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.513e-05/0.3003, allocations: 85.12 kB / 440.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003701/0.3007, allocations: 332.5 kB / 440.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.057e-05/0.3007, allocations: 29.7 kB / 441 MB, free: 13.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001737/0.3009, allocations: 211.8 kB / 441.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.919e-05/0.301, allocations: 35.73 kB / 441.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.3011, allocations: 57.88 kB / 441.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.3012, allocations: 334.8 kB / 441.6 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003624/0.3016, allocations: 100.2 kB / 441.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004371/0.302, allocations: 211.7 kB / 441.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007398/0.3028, allocations: 343.7 kB / 442.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3028, allocations: 384 / 442.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000945/0.3037, allocations: 399.5 kB / 442.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.413e-05/0.3038, allocations: 34.2 kB / 442.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.3038, allocations: 4 kB / 442.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000191/0.304, allocations: 40.77 kB / 442.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002618/0.3042, allocations: 59.89 kB / 442.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00124/0.3055, allocations: 1.299 MB / 444 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003365/0.3058, allocations: 63.86 kB / 444.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.35e-05/0.3058, allocations: 12 kB / 444.1 MB, free: 10.07 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.0001757/0.306, allocations: 148.4 kB / 444.3 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.035e-05/0.3061, allocations: 27.81 kB / 444.3 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.63e-05/0.3061, allocations: 34.61 kB / 444.3 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.3061, allocations: 4 kB / 444.3 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.3061, allocations: 3.938 kB / 444.3 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3061, allocations: 4 kB / 444.3 MB, free: 9.844 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004884/0.3066, allocations: 426.2 kB / 444.8 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3066, allocations: 0 / 444.8 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001638/0.3068, allocations: 27.97 kB / 444.8 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001063/0.3069, allocations: 32.81 kB / 444.8 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/0.3069, allocations: 7.922 kB / 444.8 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001092/0.308, allocations: 1.295 MB / 446.1 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.308, allocations: 0 / 446.1 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007329/0.3087, allocations: 274.5 kB / 446.4 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.555e-05/0.3088, allocations: 27.84 kB / 446.4 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.422e-05/0.3088, allocations: 0 / 446.4 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002227/0.309, allocations: 35.95 kB / 446.4 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.909e-05/0.3091, allocations: 19.92 kB / 446.5 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.005e-05/0.3091, allocations: 0 / 446.5 MB, free: 7.523 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002697/0.3094, allocations: 235 kB / 446.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3094, allocations: 0 / 446.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003398/0.3097, allocations: 71.89 kB / 446.8 MB, free: 7.223 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.0001431/0.3099, allocations: 95.25 kB / 446.9 MB, free: 7.117 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009765/0.3109, allocations: 406.5 kB / 447.3 MB, free: 6.695 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3109, allocations: 3.938 kB / 447.3 MB, free: 6.691 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004744/0.3113, allocations: 214.5 kB / 447.5 MB, free: 6.469 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003464/0.3117, allocations: 51.97 kB / 447.5 MB, free: 6.422 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/0.3128, allocations: 489.1 kB / 448 MB, free: 5.914 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003893/0.3131, allocations: 0.7518 MB / 448.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001236/0.3133, allocations: 38.95 kB / 448.8 MB, free: 5.098 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.451e-05/0.3133, allocations: 27.42 kB / 448.8 MB, free: 5.07 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3133, allocations: 0 / 448.8 MB, free: 5.07 MB / 350.1 MB Notification: Performance of Templates: time 0.008005/0.3213, allocations: 3.42 MB / 452.2 MB, free: 1.688 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 -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/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_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.632409672951326]