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.0009404/0.0009404, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001136/0.001136, allocations: 174.4 kB / 24.92 MB, free: 8.723 MB / 18.57 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.007/1.007, allocations: 177.1 MB / 205.3 MB, free: 5.066 MB / 186.7 MB " [Timeout remaining time 179] 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.613e-06/1.613e-06, allocations: 0 / 273.5 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.147e-05/2.308e-05, allocations: 2.312 kB / 273.5 MB, free: 1.062 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003561/0.003584, allocations: 2.916 MB / 276.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001453/0.005038, allocations: 0.7398 MB / 277.2 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001414/0.005179, allocations: 7.938 kB / 277.2 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001447/0.005324, allocations: 47.5 kB / 277.2 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001703/0.005494, allocations: 111.1 kB / 277.4 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002727/0.005767, allocations: 111.7 kB / 277.5 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003718/0.006139, allocations: 402.3 kB / 277.9 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001699/0.006309, allocations: 95.09 kB / 278 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002727/0.006581, allocations: 223.5 kB / 278.2 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001743/0.006756, allocations: 135.6 kB / 278.3 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.266e-05/0.006808, allocations: 40 kB / 278.3 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.859e-05/0.006847, allocations: 36 kB / 278.4 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.645e-05/0.006913, allocations: 79.67 kB / 278.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.007019, allocations: 119.7 kB / 278.6 MB, free: 12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003589/0.007378, allocations: 255 kB / 278.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.007381, allocations: 0 / 278.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.71e-07/0.007382, allocations: 0 / 278.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.007387, allocations: 0 / 278.8 MB, free: 11.75 MB / 266.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.0007951/0.008182, allocations: 0.5765 MB / 279.4 MB, free: 11.14 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.008218, allocations: 15.97 kB / 279.4 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.038e-05/0.008278, allocations: 40.91 kB / 279.5 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000234/0.008512, allocations: 193.2 kB / 279.6 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.008531, allocations: 16.88 kB / 279.7 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.245e-05/0.008554, allocations: 20.38 kB / 279.7 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002889/0.008843, allocations: 247.9 kB / 279.9 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.008852, allocations: 192 / 279.9 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.00887, allocations: 12.38 kB / 279.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.008876, allocations: 7.938 kB / 279.9 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001008/0.008977, allocations: 71.41 kB / 280 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008865/0.009864, allocations: 0.8141 MB / 280.8 MB, free: 9.617 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001771/0.01004, allocations: 62.55 kB / 280.9 MB, free: 9.547 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.346e-05/0.01007, allocations: 24.83 kB / 280.9 MB, free: 9.52 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.954e-05/0.01009, allocations: 3.984 kB / 280.9 MB, free: 9.516 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001466/0.01024, allocations: 105.1 kB / 281 MB, free: 9.395 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.152e-06/0.01024, allocations: 0 / 281 MB, free: 9.395 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003056/0.01055, allocations: 118.4 kB / 281.1 MB, free: 9.27 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.298e-05/0.01059, allocations: 81.05 kB / 281.2 MB, free: 9.172 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001744/0.01076, allocations: 264.8 kB / 281.5 MB, free: 8.902 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.01078, allocations: 25.7 kB / 281.5 MB, free: 8.871 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.108e-05/0.01088, allocations: 200.3 kB / 281.7 MB, free: 8.668 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.162e-05/0.0109, allocations: 35.72 kB / 281.7 MB, free: 8.633 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.4e-05/0.01096, allocations: 61.98 kB / 281.8 MB, free: 8.562 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.631e-05/0.01105, allocations: 338.8 kB / 282.1 MB, free: 8.223 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.74e-05/0.0111, allocations: 53.92 kB / 282.2 MB, free: 8.164 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.25e-05/0.0112, allocations: 152.7 kB / 282.3 MB, free: 7.957 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001461/0.01134, allocations: 204 kB / 282.5 MB, free: 7.699 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.01135, allocations: 0 / 282.5 MB, free: 7.699 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002339/0.01158, allocations: 241.4 kB / 282.8 MB, free: 7.441 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.412e-05/0.01161, allocations: 37.69 kB / 282.8 MB, free: 7.398 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.01162, allocations: 7.938 kB / 282.8 MB, free: 7.391 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001887/0.01181, allocations: 53.27 kB / 282.8 MB, free: 7.336 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.01193, allocations: 59.89 kB / 282.9 MB, free: 7.277 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009538/0.01289, allocations: 1.159 MB / 284.1 MB, free: 6.035 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001437/0.01303, allocations: 47.89 kB / 284.1 MB, free: 5.988 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/0.01305, allocations: 15.98 kB / 284.1 MB, free: 5.973 MB / 266.7 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 9.19e-05/0.01314, allocations: 125.7 kB / 284.3 MB, free: 5.84 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.367e-05/0.01316, allocations: 19.92 kB / 284.3 MB, free: 5.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.022e-05/0.01319, allocations: 25.77 kB / 284.3 MB, free: 5.793 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.01319, allocations: 4 kB / 284.3 MB, free: 5.789 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.0132, allocations: 0 / 284.3 MB, free: 5.789 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.0132, allocations: 4 kB / 284.3 MB, free: 5.785 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002236/0.01342, allocations: 259.5 kB / 284.6 MB, free: 5.504 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.01343, allocations: 0 / 284.6 MB, free: 5.504 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.691e-05/0.01348, allocations: 15.98 kB / 284.6 MB, free: 5.488 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001235/0.01361, allocations: 48.83 kB / 284.6 MB, free: 5.438 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.01361, allocations: 4 kB / 284.6 MB, free: 5.434 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005254/0.01414, allocations: 1.17 MB / 285.8 MB, free: 4.18 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.01414, allocations: 4 kB / 285.8 MB, free: 4.176 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001338/0.01428, allocations: 122.7 kB / 285.9 MB, free: 4.031 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.074e-05/0.0143, allocations: 15.98 kB / 285.9 MB, free: 4.016 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.626e-05/0.01432, allocations: 12 kB / 285.9 MB, free: 4.004 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.296e-05/0.01439, allocations: 11.98 kB / 286 MB, free: 3.992 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.323e-05/0.01445, allocations: 27.84 kB / 286 MB, free: 3.965 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.01446, allocations: 0 / 286 MB, free: 3.965 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.219e-05/0.01453, allocations: 90.77 kB / 286.1 MB, free: 3.871 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.1e-08/0.01453, allocations: 0 / 286.1 MB, free: 3.871 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002119/0.01474, allocations: 75.83 kB / 286.1 MB, free: 3.797 MB / 266.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 (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.0001105/0.01485, allocations: 87.55 kB / 286.2 MB, free: 3.703 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003016/0.01515, allocations: 299.5 kB / 286.5 MB, free: 3.379 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/0.01516, allocations: 8 kB / 286.5 MB, free: 3.371 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001135/0.01527, allocations: 164.3 kB / 286.7 MB, free: 3.195 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001728/0.01545, allocations: 47.22 kB / 286.7 MB, free: 3.152 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008493/0.0163, allocations: 446 kB / 287.2 MB, free: 2.688 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.055e-05/0.01635, allocations: 84.31 kB / 287.3 MB, free: 2.586 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.971e-05/0.01645, allocations: 26.3 kB / 287.3 MB, free: 2.559 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001355/0.01658, allocations: 91.34 kB / 287.4 MB, free: 2.469 MB / 266.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01658, allocations: 0 / 287.4 MB, free: 2.469 MB / 266.7 MB Notification: Performance of Templates: time 0.1092/0.1258, allocations: 3.369 MB / 290.7 MB, free: 25.73 MB / 266.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.711899775080383]