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.001326/0.001326, 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.001368/0.001368, allocations: 214.8 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.466/1.466, allocations: 230.6 MB / 258.2 MB, free: 7.73 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.001531/0.001531, allocations: 47.92 kB / 379 MB, free: 2.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2336/0.2351, allocations: 53.38 MB / 432.4 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004487/0.2396, allocations: 2.708 MB / 435.1 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001361/0.241, allocations: 0.7051 MB / 435.8 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001429/0.2411, allocations: 4 kB / 435.8 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001573/0.2413, allocations: 47.5 kB / 435.8 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002177/0.2415, allocations: 99.19 kB / 435.9 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000282/0.2418, allocations: 115.8 kB / 436 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004579/0.2422, allocations: 398.4 kB / 436.4 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002113/0.2424, allocations: 95.42 kB / 436.5 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001845/0.2426, allocations: 155.4 kB / 436.7 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002221/0.2428, allocations: 175.2 kB / 436.8 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.939e-05/0.2429, allocations: 36 kB / 436.9 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.317e-05/0.243, allocations: 40 kB / 436.9 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.855e-05/0.243, allocations: 83.67 kB / 437 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000152/0.2432, allocations: 139.3 kB / 437.1 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004559/0.2437, allocations: 406.1 kB / 437.5 MB, free: 1.488 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2437, allocations: 0 / 437.5 MB, free: 1.488 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2437, allocations: 0 / 437.5 MB, free: 1.488 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.2437, allocations: 0 / 437.5 MB, free: 1.488 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.001415/0.2451, allocations: 0.6131 MB / 438.1 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.2451, allocations: 8.031 kB / 438.2 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.033e-05/0.2452, allocations: 36.7 kB / 438.2 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004437/0.2456, allocations: 241.8 kB / 438.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.771e-05/0.2457, allocations: 24.86 kB / 438.4 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.101e-05/0.2457, allocations: 24.38 kB / 438.5 MB, free: 496 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007626/0.2465, allocations: 327 kB / 438.8 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.2465, allocations: 0 / 438.8 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.074e-05/0.2465, allocations: 8 kB / 438.8 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.2465, allocations: 8 kB / 438.8 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008316/0.2474, allocations: 273.8 kB / 439.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001845/0.2492, allocations: 0.9712 MB / 440 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008332/0.2501, allocations: 198.5 kB / 440.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003272/0.2504, allocations: 92.91 kB / 440.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.609e-05/0.2504, allocations: 4 kB / 440.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004429/0.2508, allocations: 153 kB / 440.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.2509, allocations: 0 / 440.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001272/0.2521, allocations: 326.4 kB / 440.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.657e-05/0.2522, allocations: 89.09 kB / 440.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003398/0.2525, allocations: 289.9 kB / 441.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.906e-05/0.2525, allocations: 37.64 kB / 441.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000166/0.2527, allocations: 215.8 kB / 441.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.264e-05/0.2528, allocations: 43.69 kB / 441.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.936e-05/0.2529, allocations: 49.92 kB / 441.5 MB, free: 13.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.253, allocations: 334.8 kB / 441.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003773/0.2534, allocations: 125.9 kB / 442 MB, free: 12.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004681/0.2539, allocations: 245.4 kB / 442.2 MB, free: 12.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007631/0.2546, allocations: 335.5 kB / 442.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.2546, allocations: 4 kB / 442.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001049/0.2557, allocations: 437.6 kB / 443 MB, free: 11.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.065e-05/0.2557, allocations: 33.7 kB / 443 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.2557, allocations: 8 kB / 443 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001862/0.2559, allocations: 32.83 kB / 443 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002882/0.2562, allocations: 59.89 kB / 443.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001159/0.2574, allocations: 1.272 MB / 444.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003548/0.2577, allocations: 47.81 kB / 444.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.416e-05/0.2577, allocations: 8 kB / 444.4 MB, free: 10.11 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.0001635/0.2579, allocations: 156.3 kB / 444.6 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.74e-05/0.258, allocations: 23.86 kB / 444.6 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.936e-05/0.258, allocations: 37.73 kB / 444.6 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.258, allocations: 0 / 444.6 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.258, allocations: 4 kB / 444.6 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.258, allocations: 3.984 kB / 444.6 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004246/0.2584, allocations: 354.9 kB / 445 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.2584, allocations: 0 / 445 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000191/0.2586, allocations: 35.95 kB / 445 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001048/0.2587, allocations: 24.88 kB / 445 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.2588, allocations: 4 kB / 445 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001121/0.2599, allocations: 1.268 MB / 446.3 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2599, allocations: 0 / 446.3 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007849/0.2607, allocations: 270.6 kB / 446.6 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.553e-05/0.2607, allocations: 19.86 kB / 446.6 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.913e-05/0.2608, allocations: 7.984 kB / 446.6 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002327/0.261, allocations: 27.97 kB / 446.6 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.839e-05/0.2611, allocations: 24 kB / 446.7 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.159e-05/0.2611, allocations: 3.938 kB / 446.7 MB, free: 7.684 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002212/0.2613, allocations: 205.2 kB / 446.9 MB, free: 7.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2613, allocations: 0 / 446.9 MB, free: 7.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003461/0.2616, allocations: 71.84 kB / 446.9 MB, free: 7.41 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.0001277/0.2618, allocations: 95.25 kB / 447 MB, free: 7.305 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00101/0.2628, allocations: 436.4 kB / 447.5 MB, free: 6.848 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2628, allocations: 4.062 kB / 447.5 MB, free: 6.844 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004947/0.2633, allocations: 210.5 kB / 447.7 MB, free: 6.625 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003293/0.2636, allocations: 51.25 kB / 447.7 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.2646, allocations: 493.2 kB / 448.2 MB, free: 6.066 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001424/0.2648, allocations: 146.9 kB / 448.3 MB, free: 5.906 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001146/0.2649, allocations: 26.3 kB / 448.4 MB, free: 5.879 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.365e-05/0.265, allocations: 23.42 kB / 448.4 MB, free: 5.855 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.265, allocations: 4 kB / 448.4 MB, free: 5.852 MB / 350.1 MB Notification: Performance of Templates: time 0.007814/0.2728, allocations: 3.575 MB / 452 MB, free: 2.332 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 gbode -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: 4.320069770998089]