Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009007/0.0009007, allocations: 85.17 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008595/0.0008595, allocations: 143.4 kB / 24.89 MB, free: 8.727 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9199/0.9199, allocations: 173.4 MB / 201.5 MB, free: 8.75 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.283e-06/1.283e-06, allocations: 0 / 268.5 MB, free: 5.988 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.792e-05/1.921e-05, allocations: 6.312 kB / 268.5 MB, free: 5.98 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.0027/0.00272, allocations: 2.849 MB / 271.4 MB, free: 3.117 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008885/0.003608, allocations: 0.7125 MB / 272.1 MB, free: 2.398 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.003721, allocations: 7.938 kB / 272.1 MB, free: 2.391 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001382/0.003859, allocations: 51.5 kB / 272.1 MB, free: 2.34 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000152/0.004011, allocations: 107.1 kB / 272.2 MB, free: 2.234 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002157/0.004227, allocations: 111.7 kB / 272.3 MB, free: 2.125 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000293/0.00452, allocations: 406.3 kB / 272.7 MB, free: 1.727 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001414/0.004661, allocations: 95.09 kB / 272.8 MB, free: 1.633 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001879/0.004849, allocations: 215.5 kB / 273 MB, free: 1.422 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001464/0.004996, allocations: 143.6 kB / 273.2 MB, free: 1.281 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.358e-05/0.005039, allocations: 36 kB / 273.2 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.298e-05/0.005072, allocations: 36 kB / 273.3 MB, free: 1.211 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.868e-05/0.005131, allocations: 87.67 kB / 273.3 MB, free: 1.125 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.467e-05/0.005215, allocations: 115.7 kB / 273.5 MB, free: 1.012 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002217/0.005437, allocations: 247.1 kB / 273.7 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.00544, allocations: 4 kB / 273.7 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.005441, allocations: 0 / 273.7 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.336e-06/0.005444, allocations: 0 / 273.7 MB, free: 0.7656 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.0006685/0.006112, allocations: 0.5648 MB / 274.3 MB, free: 172 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.807e-05/0.006141, allocations: 12.92 kB / 274.3 MB, free: 160 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.785e-05/0.006198, allocations: 44.89 kB / 274.3 MB, free: 116 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002123/0.006411, allocations: 193.2 kB / 274.5 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.545e-05/0.006426, allocations: 12.88 kB / 274.5 MB, free: 15.88 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.862e-05/0.006455, allocations: 32.3 kB / 274.6 MB, free: 15.85 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004922/0.006947, allocations: 243.9 kB / 274.8 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.006956, allocations: 192 / 274.8 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.006973, allocations: 12.38 kB / 274.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.006981, allocations: 11.94 kB / 274.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.438e-05/0.007075, allocations: 63.47 kB / 274.9 MB, free: 15.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008105/0.007886, allocations: 0.8102 MB / 275.7 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001548/0.008041, allocations: 74.41 kB / 275.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.4e-05/0.008075, allocations: 20.8 kB / 275.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.37e-05/0.008088, allocations: 0 / 275.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001055/0.008194, allocations: 101.2 kB / 275.9 MB, free: 14.42 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 7.62e-07/0.008194, allocations: 0 / 275.9 MB, free: 14.42 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002584/0.008453, allocations: 118.4 kB / 276 MB, free: 14.3 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.009e-05/0.008483, allocations: 77.11 kB / 276.1 MB, free: 14.2 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001467/0.00863, allocations: 272.7 kB / 276.3 MB, free: 13.92 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.008645, allocations: 25.7 kB / 276.4 MB, free: 13.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.061e-05/0.008726, allocations: 208.2 kB / 276.6 MB, free: 13.68 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.06e-05/0.008746, allocations: 31.73 kB / 276.6 MB, free: 13.65 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.675e-05/0.008803, allocations: 54.03 kB / 276.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.282e-05/0.008876, allocations: 338.8 kB / 277 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.012e-05/0.008926, allocations: 53.92 kB / 277 MB, free: 13.19 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.843e-05/0.009014, allocations: 156.7 kB / 277.2 MB, free: 12.98 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001368/0.009151, allocations: 219.6 kB / 277.4 MB, free: 12.71 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.009154, allocations: 0 / 277.4 MB, free: 12.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002104/0.009364, allocations: 233.5 kB / 277.6 MB, free: 12.46 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.697e-05/0.009391, allocations: 41.69 kB / 277.7 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.009397, allocations: 4 kB / 277.7 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001626/0.00956, allocations: 53.25 kB / 277.7 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.009671, allocations: 51.91 kB / 277.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005449/0.01022, allocations: 1.174 MB / 278.9 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001226/0.01034, allocations: 43.89 kB / 279 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.418e-05/0.01035, allocations: 8 kB / 279 MB, free: 10.99 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 7.895e-05/0.01043, allocations: 125.8 kB / 279.1 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.108e-05/0.01045, allocations: 19.92 kB / 279.1 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.599e-05/0.01048, allocations: 29.77 kB / 279.2 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.01048, allocations: 0 / 279.2 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/0.01048, allocations: 3.938 kB / 279.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.01049, allocations: 3.984 kB / 279.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002021/0.01069, allocations: 271.4 kB / 279.4 MB, free: 10.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.01069, allocations: 0 / 279.4 MB, free: 10.51 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.273e-05/0.01074, allocations: 19.98 kB / 279.5 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001096/0.01085, allocations: 32.83 kB / 279.5 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.01086, allocations: 8.031 kB / 279.5 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004709/0.01133, allocations: 1.162 MB / 280.7 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.01133, allocations: 4 kB / 280.7 MB, free: 9.191 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001228/0.01145, allocations: 122.7 kB / 280.8 MB, free: 9.047 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.152e-05/0.01148, allocations: 15.86 kB / 280.8 MB, free: 9.031 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.068e-05/0.0115, allocations: 12.12 kB / 280.8 MB, free: 9.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.931e-05/0.01157, allocations: 11.98 kB / 280.8 MB, free: 9.008 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.677e-05/0.01161, allocations: 19.91 kB / 280.8 MB, free: 8.988 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-06/0.01162, allocations: 4 kB / 280.9 MB, free: 8.984 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.687e-05/0.01169, allocations: 94.75 kB / 280.9 MB, free: 8.895 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01169, allocations: 0 / 280.9 MB, free: 8.895 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001873/0.01187, allocations: 71.84 kB / 281 MB, free: 8.824 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 9.074e-05/0.01196, allocations: 88.34 kB / 281.1 MB, free: 8.73 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000275/0.01224, allocations: 296.3 kB / 281.4 MB, free: 8.406 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.01225, allocations: 4 kB / 281.4 MB, free: 8.402 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003237/0.01257, allocations: 155.4 kB / 281.5 MB, free: 8.234 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001583/0.01273, allocations: 46.12 kB / 281.6 MB, free: 8.188 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006098/0.01334, allocations: 454 kB / 282 MB, free: 7.715 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.732e-05/0.01338, allocations: 80.31 kB / 282.1 MB, free: 7.617 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.883e-05/0.01344, allocations: 30.28 kB / 282.1 MB, free: 7.586 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.01355, allocations: 91.34 kB / 282.2 MB, free: 7.496 MB / 266.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01355, allocations: 0 / 282.2 MB, free: 7.496 MB / 266.7 MB Notification: Performance of Templates: time 0.004671/0.01822, allocations: 3.367 MB / 285.6 MB, free: 4.188 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.593401791062206]