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.001361/0.001361, allocations: 84.7 kB / 20.68 MB, free: 1.023 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.001638/0.001638, allocations: 166.5 kB / 23.95 MB, free: 4.16 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.435/1.435, allocations: 177.1 MB / 204.3 MB, free: 9.152 MB / 190.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 1.813e-06/1.813e-06, allocations: 0 / 325.1 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.883e-05/3.065e-05, allocations: 3.531 kB / 325.1 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004746/0.004777, allocations: 2.727 MB / 327.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001645/0.006422, allocations: 0.7129 MB / 328.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001688/0.006591, allocations: 4.344 kB / 328.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002473/0.006838, allocations: 54.2 kB / 328.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002727/0.007111, allocations: 105.3 kB / 328.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000376/0.007487, allocations: 112.8 kB / 328.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005601/0.008047, allocations: 410.4 kB / 329.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002435/0.00829, allocations: 88.62 kB / 329.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003294/0.00862, allocations: 221.5 kB / 329.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.008863, allocations: 130.5 kB / 329.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.599e-05/0.008939, allocations: 37.28 kB / 329.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.423e-05/0.009013, allocations: 36.41 kB / 329.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001024/0.009116, allocations: 78.56 kB / 329.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001813/0.009297, allocations: 119.8 kB / 329.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006101/0.009907, allocations: 407.6 kB / 330.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.009911, allocations: 0 / 330.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.009912, allocations: 1.219 kB / 330.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.00992, allocations: 0 / 330.3 MB, free: 13.29 MB / 302.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.001509/0.01143, allocations: 0.6153 MB / 330.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.01147, allocations: 9.094 kB / 330.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.379e-05/0.01156, allocations: 37.23 kB / 331 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004266/0.01199, allocations: 235.1 kB / 331.2 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.805e-05/0.01202, allocations: 19.44 kB / 331.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.264e-05/0.01207, allocations: 24.88 kB / 331.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000774/0.01284, allocations: 325 kB / 331.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.01286, allocations: 192 / 331.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.01289, allocations: 9.812 kB / 331.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.0129, allocations: 10.12 kB / 331.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00092/0.01382, allocations: 277.2 kB / 331.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001918/0.01574, allocations: 0.9644 MB / 332.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008643/0.0166, allocations: 200.4 kB / 333 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003214/0.01693, allocations: 88.95 kB / 333.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.003e-05/0.01696, allocations: 9.172 kB / 333.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004688/0.01743, allocations: 151.3 kB / 333.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.502e-06/0.01743, allocations: 1.125 kB / 333.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.00135/0.01878, allocations: 327.3 kB / 333.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.515e-05/0.01884, allocations: 79.64 kB / 333.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003533/0.0192, allocations: 305.8 kB / 334 MB, free: 10.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.984e-05/0.01924, allocations: 26.95 kB / 334 MB, free: 10.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001701/0.01941, allocations: 215.3 kB / 334.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.172e-05/0.01945, allocations: 36.47 kB / 334.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.01956, allocations: 61.42 kB / 334.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.01973, allocations: 332.4 kB / 334.6 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000384/0.02012, allocations: 124.5 kB / 334.7 MB, free: 9.895 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004605/0.02058, allocations: 244.9 kB / 335 MB, free: 9.664 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007934/0.02137, allocations: 331.7 kB / 335.3 MB, free: 9.395 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.02138, allocations: 1.281 kB / 335.3 MB, free: 9.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00102/0.0224, allocations: 425.1 kB / 335.7 MB, free: 9.133 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.929e-05/0.02245, allocations: 41.61 kB / 335.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.02245, allocations: 4.406 kB / 335.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002/0.02265, allocations: 41.41 kB / 335.8 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002881/0.02294, allocations: 60.67 kB / 335.9 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001176/0.02412, allocations: 1.27 MB / 337.1 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003707/0.02449, allocations: 51.31 kB / 337.2 MB, free: 7.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.035e-05/0.02452, allocations: 15.81 kB / 337.2 MB, free: 7.734 MB / 302.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.0001846/0.0247, allocations: 152.2 kB / 337.3 MB, free: 7.594 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.18e-05/0.02475, allocations: 22.11 kB / 337.4 MB, free: 7.582 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.407e-05/0.0248, allocations: 29.67 kB / 337.4 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.0248, allocations: 5.062 kB / 337.4 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.02481, allocations: 5.031 kB / 337.4 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.02481, allocations: 0 / 337.4 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004658/0.02528, allocations: 360.5 kB / 337.8 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.02528, allocations: 0 / 337.8 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001797/0.02546, allocations: 27.44 kB / 337.8 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001042/0.02556, allocations: 29.69 kB / 337.8 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.02558, allocations: 4.984 kB / 337.8 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001073/0.02665, allocations: 1.268 MB / 339.1 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.02666, allocations: 1.219 kB / 339.1 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007765/0.02743, allocations: 263.2 kB / 339.3 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.295e-05/0.02748, allocations: 30.5 kB / 339.4 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.905e-05/0.02752, allocations: 5.188 kB / 339.4 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/0.02775, allocations: 28.09 kB / 339.4 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.406e-05/0.02784, allocations: 17.78 kB / 339.4 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.02785, allocations: 2.656 kB / 339.4 MB, free: 5.676 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000221/0.02807, allocations: 202.7 kB / 339.6 MB, free: 5.535 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.02807, allocations: 1.156 kB / 339.6 MB, free: 5.535 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003778/0.02845, allocations: 75.94 kB / 339.7 MB, free: 5.516 MB / 302.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.0001468/0.02859, allocations: 99.36 kB / 339.8 MB, free: 5.426 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001105/0.0297, allocations: 435.6 kB / 340.2 MB, free: 5.105 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.0297, allocations: 0 / 340.2 MB, free: 5.105 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005033/0.0302, allocations: 212.9 kB / 340.4 MB, free: 4.945 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000347/0.03055, allocations: 51.98 kB / 340.5 MB, free: 4.918 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001094/0.03165, allocations: 466.1 kB / 340.9 MB, free: 4.508 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001498/0.0318, allocations: 146.9 kB / 341.1 MB, free: 4.344 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001076/0.0319, allocations: 26.28 kB / 341.1 MB, free: 4.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.429e-05/0.03198, allocations: 24.5 kB / 341.1 MB, free: 4.297 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.03198, allocations: 4 kB / 341.1 MB, free: 4.293 MB / 302.1 MB Notification: Performance of Templates: time 0.007772/0.03975, allocations: 3.251 MB / 344.4 MB, free: 1.086 MB / 302.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.417482916265726]