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.001769/0.001769, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.002302/0.002302, allocations: 215.6 kB / 24.48 MB, free: 3.84 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.479/1.479, allocations: 230.6 MB / 258.2 MB, free: 7.82 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.001689/0.001689, allocations: 55.92 kB / 379 MB, free: 2.438 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2731/0.2748, allocations: 53.36 MB / 432.4 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004357/0.2791, allocations: 2.719 MB / 435.1 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001499/0.2806, allocations: 0.709 MB / 435.8 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001826/0.2808, allocations: 4 kB / 435.8 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001933/0.281, allocations: 47.5 kB / 435.8 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002249/0.2812, allocations: 103.2 kB / 435.9 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000335/0.2816, allocations: 115.8 kB / 436.1 MB, free: 3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004514/0.282, allocations: 386.5 kB / 436.4 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002233/0.2822, allocations: 92.11 kB / 436.5 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001952/0.2824, allocations: 155.4 kB / 436.7 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002326/0.2827, allocations: 155.2 kB / 436.8 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.385e-05/0.2827, allocations: 36 kB / 436.9 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.51e-05/0.2828, allocations: 36 kB / 436.9 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.888e-05/0.2829, allocations: 79.69 kB / 437 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001924/0.2831, allocations: 139.4 kB / 437.1 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005456/0.2836, allocations: 397.4 kB / 437.5 MB, free: 1.559 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.2836, allocations: 4 kB / 437.5 MB, free: 1.555 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2836, allocations: 0 / 437.5 MB, free: 1.555 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.2836, allocations: 4 kB / 437.5 MB, free: 1.551 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.001505/0.2851, allocations: 0.6091 MB / 438.1 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.2852, allocations: 8.031 kB / 438.1 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.99e-05/0.2853, allocations: 40.7 kB / 438.2 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004732/0.2857, allocations: 237.8 kB / 438.4 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.889e-05/0.2858, allocations: 16.88 kB / 438.4 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.474e-05/0.2858, allocations: 28.38 kB / 438.4 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007556/0.2866, allocations: 323 kB / 438.8 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.2866, allocations: 0 / 438.8 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.557e-05/0.2866, allocations: 15.98 kB / 438.8 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.2866, allocations: 4 kB / 438.8 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009138/0.2875, allocations: 277.8 kB / 439 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001915/0.2895, allocations: 0.9634 MB / 440 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008327/0.2903, allocations: 202.5 kB / 440.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003131/0.2906, allocations: 84.98 kB / 440.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.857e-05/0.2906, allocations: 11.92 kB / 440.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004681/0.2911, allocations: 157 kB / 440.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.2911, allocations: 0 / 440.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001402/0.2925, allocations: 334.1 kB / 440.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/0.2926, allocations: 81.14 kB / 440.9 MB, free: 13.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003534/0.2929, allocations: 289.7 kB / 441.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.048e-05/0.2929, allocations: 33.7 kB / 441.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002144/0.2932, allocations: 215.9 kB / 441.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.392e-05/0.2932, allocations: 39.69 kB / 441.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.968e-05/0.2933, allocations: 53.88 kB / 441.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.2935, allocations: 334.8 kB / 441.8 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004108/0.2939, allocations: 133.8 kB / 441.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000466/0.2944, allocations: 237.4 kB / 442.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008002/0.2952, allocations: 339.9 kB / 442.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.349e-06/0.2952, allocations: 0 / 442.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001055/0.2962, allocations: 433.6 kB / 442.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.212e-05/0.2963, allocations: 41.72 kB / 443 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.2963, allocations: 4 kB / 443 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002035/0.2965, allocations: 32.78 kB / 443 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002829/0.2968, allocations: 63.89 kB / 443.1 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001515/0.2983, allocations: 1.268 MB / 444.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003656/0.2987, allocations: 47.81 kB / 444.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.035e-05/0.2987, allocations: 19.98 kB / 444.4 MB, free: 10.16 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.0002187/0.2989, allocations: 145.7 kB / 444.5 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.27e-05/0.299, allocations: 27.98 kB / 444.6 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.813e-05/0.299, allocations: 25.7 kB / 444.6 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.299, allocations: 0 / 444.6 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.299, allocations: 0 / 444.6 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.299, allocations: 4 kB / 444.6 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005203/0.2995, allocations: 358.9 kB / 444.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2995, allocations: 384 / 444.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001705/0.2997, allocations: 27.97 kB / 445 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001113/0.2998, allocations: 32.86 kB / 445 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.2998, allocations: 0 / 445 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001223/0.3011, allocations: 1.28 MB / 446.3 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3011, allocations: 0 / 446.3 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007706/0.3018, allocations: 270.6 kB / 446.6 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.413e-05/0.3019, allocations: 27.78 kB / 446.6 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.435e-05/0.3019, allocations: 4 kB / 446.6 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002386/0.3022, allocations: 27.97 kB / 446.6 MB, free: 7.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.361e-05/0.3022, allocations: 19.97 kB / 446.6 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.276e-05/0.3023, allocations: 4 kB / 446.6 MB, free: 7.746 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002381/0.3025, allocations: 197.2 kB / 446.8 MB, free: 7.551 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3025, allocations: 3.938 kB / 446.8 MB, free: 7.547 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003662/0.3029, allocations: 75.84 kB / 446.9 MB, free: 7.473 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.0001663/0.303, allocations: 103.2 kB / 447 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001165/0.3042, allocations: 428.1 kB / 447.4 MB, free: 6.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3042, allocations: 0 / 447.4 MB, free: 6.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005271/0.3047, allocations: 214.5 kB / 447.6 MB, free: 6.688 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003745/0.3051, allocations: 45.02 kB / 447.7 MB, free: 6.645 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001356/0.3064, allocations: 0.5094 MB / 448.2 MB, free: 6.102 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001669/0.3066, allocations: 146.9 kB / 448.3 MB, free: 5.941 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001707/0.3068, allocations: 23.42 kB / 448.4 MB, free: 5.918 MB / 350.1 MB Notification: Performance of SimCode: time 1.342e-06/0.3068, allocations: 0 / 448.4 MB, free: 5.918 MB / 350.1 MB Notification: Performance of Templates: time 0.008476/0.3153, allocations: 4.612 MB / 453 MB, free: 1.324 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/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.31110312929377]