Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001742/0.001742, allocations: 120.7 kB / 19.18 MB, free: 3.906 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002057/0.002057, allocations: 202.6 kB / 22.12 MB, free: 0.9648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 230.2 MB / 255.2 MB, free: 15.4 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 67.89 kB / 374.6 MB, free: 9.898 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09795/0.09989, allocations: 53.32 MB / 427.9 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004491/0.1044, allocations: 2.916 MB / 430.8 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00153/0.1059, allocations: 0.7401 MB / 431.5 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002114/0.1061, allocations: 8 kB / 431.5 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001961/0.1063, allocations: 55.5 kB / 431.6 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002798/0.1066, allocations: 99.17 kB / 431.7 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003183/0.1069, allocations: 107.8 kB / 431.8 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005131/0.1074, allocations: 386.5 kB / 432.2 MB, free: 164 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002164/0.1076, allocations: 91.94 kB / 432.3 MB, free: 68 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002565/0.1079, allocations: 151.4 kB / 432.4 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002655/0.1082, allocations: 179.2 kB / 432.6 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.468e-05/0.1082, allocations: 36 kB / 432.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.743e-05/0.1083, allocations: 36 kB / 432.7 MB, free: 15.67 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.891e-05/0.1084, allocations: 79.69 kB / 432.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002089/0.1086, allocations: 163.2 kB / 432.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004986/0.1091, allocations: 398.4 kB / 433.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1091, allocations: 0 / 433.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1091, allocations: 0 / 433.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.1091, allocations: 0 / 433.3 MB, free: 15.04 MB / 366.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.001445/0.1106, allocations: 0.6961 MB / 434 MB, free: 14.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.1106, allocations: 8.031 kB / 434 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.468e-05/0.1107, allocations: 40.7 kB / 434 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004735/0.1112, allocations: 295.8 kB / 434.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.778e-05/0.1112, allocations: 16.94 kB / 434.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.31e-05/0.1112, allocations: 24.38 kB / 434.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007238/0.112, allocations: 331.9 kB / 434.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.112, allocations: 0 / 434.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.63e-05/0.112, allocations: 4 kB / 434.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.112, allocations: 8 kB / 434.7 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008171/0.1128, allocations: 282 kB / 435 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001956/0.1148, allocations: 1.146 MB / 436.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008077/0.1156, allocations: 198.5 kB / 436.3 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003088/0.1159, allocations: 92.91 kB / 436.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.033e-05/0.1159, allocations: 0 / 436.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004426/0.1164, allocations: 157 kB / 436.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.292e-06/0.1164, allocations: 4 kB / 436.6 MB, free: 11.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0013/0.1177, allocations: 411.2 kB / 437 MB, free: 11.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.604e-05/0.1177, allocations: 85.09 kB / 437 MB, free: 11.01 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004134/0.1181, allocations: 324.5 kB / 437.4 MB, free: 10.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.244e-05/0.1182, allocations: 33.7 kB / 437.4 MB, free: 10.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001733/0.1183, allocations: 207.9 kB / 437.6 MB, free: 10.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.689e-05/0.1184, allocations: 35.73 kB / 437.6 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.865e-05/0.1185, allocations: 57.88 kB / 437.7 MB, free: 10.35 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.1186, allocations: 338.8 kB / 438 MB, free: 10.01 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003493/0.119, allocations: 96.16 kB / 438.1 MB, free: 9.914 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004311/0.1194, allocations: 222.9 kB / 438.3 MB, free: 9.645 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007605/0.1202, allocations: 327.9 kB / 438.7 MB, free: 9.266 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.1202, allocations: 4 kB / 438.7 MB, free: 9.262 MB / 366.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001003/0.1212, allocations: 402.8 kB / 439 MB, free: 8.855 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.238e-05/0.1212, allocations: 33.7 kB / 439.1 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.1212, allocations: 4 kB / 439.1 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001862/0.1214, allocations: 32.83 kB / 439.1 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002756/0.1217, allocations: 68.05 kB / 439.2 MB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001288/0.123, allocations: 1.402 MB / 440.6 MB, free: 7.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003585/0.1234, allocations: 55.7 kB / 440.6 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.685e-05/0.1234, allocations: 12 kB / 440.7 MB, free: 7.094 MB / 366.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.0001918/0.1236, allocations: 153.8 kB / 440.8 MB, free: 6.934 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.877e-05/0.1236, allocations: 31.81 kB / 440.8 MB, free: 6.902 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.728e-05/0.1237, allocations: 30.61 kB / 440.9 MB, free: 6.871 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.1237, allocations: 0 / 440.9 MB, free: 6.871 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1237, allocations: 3.938 kB / 440.9 MB, free: 6.867 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.1237, allocations: 0 / 440.9 MB, free: 6.867 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005335/0.1242, allocations: 451.2 kB / 441.3 MB, free: 6.367 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1242, allocations: 0 / 441.3 MB, free: 6.367 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001698/0.1244, allocations: 36 kB / 441.3 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001071/0.1245, allocations: 32.77 kB / 441.4 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/0.1245, allocations: 8.375 kB / 441.4 MB, free: 6.289 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001158/0.1257, allocations: 1.387 MB / 442.8 MB, free: 4.766 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.1257, allocations: 3.984 kB / 442.8 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000732/0.1264, allocations: 278.5 kB / 443 MB, free: 4.465 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/0.1265, allocations: 108.9 kB / 443.2 MB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.28e-05/0.1266, allocations: 7.984 kB / 443.2 MB, free: 4.332 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002161/0.1268, allocations: 23.97 kB / 443.2 MB, free: 4.309 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.317e-05/0.1269, allocations: 23.86 kB / 443.2 MB, free: 4.285 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/0.1269, allocations: 4 kB / 443.2 MB, free: 4.281 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002707/0.1272, allocations: 231.1 kB / 443.4 MB, free: 4.059 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1272, allocations: 4 kB / 443.4 MB, free: 4.055 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003586/0.1275, allocations: 71.83 kB / 443.5 MB, free: 3.984 MB / 366.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.0001731/0.1277, allocations: 101.7 kB / 443.6 MB, free: 3.875 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001036/0.1287, allocations: 401.8 kB / 444 MB, free: 3.457 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1287, allocations: 0.9375 kB / 444 MB, free: 3.457 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000478/0.1292, allocations: 210.6 kB / 444.2 MB, free: 3.238 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003573/0.1296, allocations: 53.27 kB / 444.3 MB, free: 3.184 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.1307, allocations: 0.5137 MB / 444.8 MB, free: 2.637 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004058/0.1311, allocations: 0.7558 MB / 445.5 MB, free: 1.855 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.615e-05/0.1312, allocations: 27.42 kB / 445.6 MB, free: 1.828 MB / 366.1 MB Notification: Performance of SimCode: time 6.12e-07/0.1312, allocations: 0 / 445.6 MB, free: 1.828 MB / 366.1 MB Notification: Performance of Templates: time 0.1766/0.3078, allocations: 4.647 MB / 450.2 MB, free: 24.08 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.326245112926699]