Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001472/0.001472, allocations: 75.75 kB / 21.97 MB, free: 2.605 MB / 18.57 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.001178/0.001178, allocations: 168.1 kB / 25.33 MB, free: 9.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9302/0.9302, allocations: 158.6 MB / 187.2 MB, free: 2.551 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 251.1 MB, free: 3.562 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.078e-05/3.293e-05, allocations: 2.312 kB / 251.1 MB, free: 3.559 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004848/0.004881, allocations: 2.835 MB / 253.9 MB, free: 0.707 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001754/0.006635, allocations: 0.7292 MB / 254.6 MB, free: 15.97 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002598/0.006895, allocations: 7.938 kB / 254.7 MB, free: 15.96 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000214/0.007109, allocations: 59.44 kB / 254.7 MB, free: 15.9 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002716/0.00738, allocations: 99.19 kB / 254.8 MB, free: 15.8 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003905/0.007771, allocations: 115.7 kB / 254.9 MB, free: 15.69 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005379/0.008309, allocations: 402.3 kB / 255.3 MB, free: 15.3 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002388/0.008547, allocations: 92.45 kB / 255.4 MB, free: 15.2 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003714/0.008919, allocations: 227.4 kB / 255.6 MB, free: 14.98 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002087/0.009128, allocations: 127.7 kB / 255.8 MB, free: 14.86 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.104e-05/0.009189, allocations: 36 kB / 255.8 MB, free: 14.82 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.307e-05/0.009242, allocations: 44 kB / 255.8 MB, free: 14.78 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.111e-05/0.009313, allocations: 83.66 kB / 255.9 MB, free: 14.7 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001487/0.009461, allocations: 119.7 kB / 256 MB, free: 14.58 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003803/0.009842, allocations: 255 kB / 256.3 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.009847, allocations: 3.938 kB / 256.3 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.009849, allocations: 0 / 256.3 MB, free: 14.32 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.009858, allocations: 0 / 256.3 MB, free: 14.32 MB / 250.7 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.001146/0.011, allocations: 0.6857 MB / 257 MB, free: 13.6 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.01105, allocations: 8.031 kB / 257 MB, free: 13.59 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.366e-05/0.01115, allocations: 60.69 kB / 257 MB, free: 13.53 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002972/0.01144, allocations: 236 kB / 257.3 MB, free: 13.27 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.091e-05/0.01146, allocations: 20.88 kB / 257.3 MB, free: 13.25 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.416e-05/0.0115, allocations: 28.38 kB / 257.3 MB, free: 13.23 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003779/0.01188, allocations: 217.3 kB / 257.5 MB, free: 13 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.01189, allocations: 192 / 257.5 MB, free: 13 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.277e-05/0.01191, allocations: 12.38 kB / 257.5 MB, free: 12.99 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.01192, allocations: 7.938 kB / 257.5 MB, free: 12.98 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001811/0.0121, allocations: 98.94 kB / 257.6 MB, free: 12.89 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001137/0.01324, allocations: 0.9126 MB / 258.6 MB, free: 11.91 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002322/0.01347, allocations: 87.06 kB / 258.6 MB, free: 11.81 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.849e-05/0.01353, allocations: 27.72 kB / 258.7 MB, free: 11.78 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.718e-05/0.01356, allocations: 8 kB / 258.7 MB, free: 11.77 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001797/0.01374, allocations: 116.3 kB / 258.8 MB, free: 11.63 MB / 250.7 MB Notification: Performance of pre-optimization done (n=11): time 2.113e-06/0.01374, allocations: 3.984 kB / 258.8 MB, free: 11.63 MB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004501/0.01419, allocations: 169.3 kB / 259 MB, free: 11.45 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.595e-05/0.01425, allocations: 85.11 kB / 259 MB, free: 11.35 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002371/0.01448, allocations: 328.1 kB / 259.4 MB, free: 11.01 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.926e-05/0.0145, allocations: 29.7 kB / 259.4 MB, free: 10.98 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.01464, allocations: 262.6 kB / 259.6 MB, free: 10.71 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.592e-05/0.01466, allocations: 47.8 kB / 259.7 MB, free: 10.67 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.393e-05/0.01474, allocations: 55.55 kB / 259.7 MB, free: 10.61 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.01487, allocations: 0.504 MB / 260.3 MB, free: 10.09 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.01497, allocations: 70.06 kB / 260.3 MB, free: 10.01 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001411/0.01511, allocations: 201.1 kB / 260.5 MB, free: 9.742 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001957/0.01531, allocations: 248.4 kB / 260.8 MB, free: 9.426 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.01531, allocations: 4 kB / 260.8 MB, free: 9.422 MB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003668/0.01568, allocations: 292.2 kB / 261 MB, free: 9.113 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.909e-05/0.01572, allocations: 37.7 kB / 261.1 MB, free: 9.07 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.01573, allocations: 4 kB / 261.1 MB, free: 9.066 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002538/0.01598, allocations: 52.05 kB / 261.1 MB, free: 9.012 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/0.01613, allocations: 55.91 kB / 261.2 MB, free: 8.957 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001129/0.01726, allocations: 1.744 MB / 262.9 MB, free: 7.094 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001546/0.01741, allocations: 43.89 kB / 263 MB, free: 7.051 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.01743, allocations: 12 kB / 263 MB, free: 7.039 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001435/0.01757, allocations: 188.8 kB / 263.2 MB, free: 6.844 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001578/0.01773, allocations: 209.1 kB / 263.4 MB, free: 6.566 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002087/0.01794, allocations: 251 kB / 263.6 MB, free: 6.25 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.713e-06/0.01794, allocations: 4 kB / 263.6 MB, free: 6.246 MB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.000327/0.01827, allocations: 296.1 kB / 263.9 MB, free: 5.934 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/0.0183, allocations: 33.7 kB / 264 MB, free: 5.895 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.0183, allocations: 4 kB / 264 MB, free: 5.891 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001574/0.01846, allocations: 52.11 kB / 264 MB, free: 5.836 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.01857, allocations: 51.91 kB / 264.1 MB, free: 5.785 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000768/0.01933, allocations: 1.752 MB / 265.8 MB, free: 3.906 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001196/0.01945, allocations: 31.88 kB / 265.8 MB, free: 3.875 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.67e-05/0.01947, allocations: 16 kB / 265.9 MB, free: 3.859 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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.0001368/0.01961, allocations: 284 kB / 266.1 MB, free: 3.574 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.405e-05/0.01964, allocations: 31.86 kB / 266.2 MB, free: 3.543 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.064e-05/0.01967, allocations: 21.77 kB / 266.2 MB, free: 3.52 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.01967, allocations: 7.938 kB / 266.2 MB, free: 3.512 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.01968, allocations: 0 / 266.2 MB, free: 3.512 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.01968, allocations: 0 / 266.2 MB, free: 3.512 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003346/0.02002, allocations: 413 kB / 266.6 MB, free: 3.062 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.02002, allocations: 0 / 266.6 MB, free: 3.062 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.864e-05/0.02009, allocations: 23.92 kB / 266.6 MB, free: 3.039 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001461/0.02024, allocations: 39.59 kB / 266.7 MB, free: 2.996 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.02025, allocations: 16.02 kB / 266.7 MB, free: 2.98 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008129/0.02106, allocations: 1.74 MB / 268.4 MB, free: 1.121 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.02106, allocations: 0 / 268.4 MB, free: 1.121 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002115/0.02127, allocations: 175.5 kB / 268.6 MB, free: 0.918 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.927e-05/0.0213, allocations: 27.78 kB / 268.6 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.02132, allocations: 4.125 kB / 268.6 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.451e-05/0.0214, allocations: 15.98 kB / 268.6 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.485e-05/0.02146, allocations: 23.91 kB / 268.7 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.195e-06/0.02147, allocations: 3.984 kB / 268.7 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001383/0.02161, allocations: 221.1 kB / 268.9 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02161, allocations: 4 kB / 268.9 MB, free: 0.625 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003336/0.02194, allocations: 131.7 kB / 269 MB, free: 0.4961 MB / 250.7 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 (10): * Single equations (assignments): 7 * 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.0001223/0.02206, allocations: 103.3 kB / 269.1 MB, free: 392 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0007186/0.02278, allocations: 0.7066 MB / 269.8 MB, free: 15.6 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.02278, allocations: 0 / 269.8 MB, free: 15.6 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001695/0.02295, allocations: 221.9 kB / 270 MB, free: 15.36 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002852/0.02324, allocations: 56.39 kB / 270.1 MB, free: 15.31 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009706/0.02421, allocations: 458.5 kB / 270.5 MB, free: 14.83 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.591e-05/0.02426, allocations: 84.62 kB / 270.6 MB, free: 14.73 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.927e-05/0.02435, allocations: 34.28 kB / 270.6 MB, free: 14.7 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.618e-05/0.02442, allocations: 20.5 kB / 270.7 MB, free: 14.68 MB / 266.7 MB Notification: Performance of SimCode: time 6.11e-07/0.02442, allocations: 0 / 270.7 MB, free: 14.68 MB / 266.7 MB Notification: Performance of Templates: time 0.006736/0.03116, allocations: 3.719 MB / 274.4 MB, free: 10.98 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.041513552889228]