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.001317/0.001317, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001282/0.001282, allocations: 161 kB / 24.56 MB, free: 16 kB / 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.038/1.038, allocations: 177.1 MB / 205 MB, free: 5.637 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 2.775e-06/2.775e-06, allocations: 0 / 273 MB, free: 1.504 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.48e-05/4.758e-05, allocations: 2.312 kB / 273 MB, free: 1.5 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004396/0.004444, allocations: 2.904 MB / 275.9 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001115/0.005559, allocations: 0.7206 MB / 276.7 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001708/0.005729, allocations: 4 kB / 276.7 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001903/0.00592, allocations: 47.5 kB / 276.7 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002223/0.006142, allocations: 103.1 kB / 276.8 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000342/0.006484, allocations: 111.7 kB / 276.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005054/0.00699, allocations: 410.2 kB / 277.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002535/0.007243, allocations: 80.52 kB / 277.4 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003378/0.007581, allocations: 235.4 kB / 277.6 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002391/0.00782, allocations: 135.6 kB / 277.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.724e-05/0.007887, allocations: 36 kB / 277.8 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.713e-05/0.007944, allocations: 40 kB / 277.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.017e-05/0.008024, allocations: 79.67 kB / 277.9 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001468/0.008171, allocations: 115.7 kB / 278 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003981/0.008569, allocations: 247.1 kB / 278.3 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.008574, allocations: 0 / 278.3 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.008576, allocations: 0 / 278.3 MB, free: 12.24 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.008582, allocations: 0 / 278.3 MB, free: 12.24 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.001202/0.009784, allocations: 0.7012 MB / 279 MB, free: 11.49 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.009832, allocations: 8.031 kB / 279 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001215/0.009953, allocations: 60.7 kB / 279 MB, free: 11.42 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004022/0.01036, allocations: 236 kB / 279.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.529e-05/0.01039, allocations: 24.86 kB / 279.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.933e-05/0.01044, allocations: 24.38 kB / 279.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005675/0.01101, allocations: 253.6 kB / 279.6 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.01102, allocations: 4.188 kB / 279.6 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.129e-05/0.01105, allocations: 16.3 kB / 279.6 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/0.01107, allocations: 11.94 kB / 279.6 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002884/0.01136, allocations: 98.94 kB / 279.7 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001744/0.0131, allocations: 1.037 MB / 280.7 MB, free: 9.613 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003756/0.01348, allocations: 87.09 kB / 280.8 MB, free: 9.516 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.733e-05/0.01357, allocations: 27.69 kB / 280.8 MB, free: 9.484 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.369e-05/0.0136, allocations: 0 / 280.8 MB, free: 9.484 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000241/0.01384, allocations: 108.4 kB / 280.9 MB, free: 9.355 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 2.134e-06/0.01384, allocations: 0 / 280.9 MB, free: 9.355 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0006142/0.01446, allocations: 153.2 kB / 281.1 MB, free: 9.195 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.605e-05/0.01451, allocations: 81.09 kB / 281.2 MB, free: 9.098 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003362/0.01485, allocations: 340.2 kB / 281.5 MB, free: 8.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.382e-05/0.01487, allocations: 29.7 kB / 281.5 MB, free: 8.715 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001709/0.01504, allocations: 262.6 kB / 281.8 MB, free: 8.453 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.993e-05/0.01508, allocations: 39.72 kB / 281.8 MB, free: 8.414 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.01519, allocations: 59.58 kB / 281.9 MB, free: 8.344 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.01537, allocations: 0.504 MB / 282.4 MB, free: 7.828 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/0.0155, allocations: 61.84 kB / 282.4 MB, free: 7.762 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000201/0.0157, allocations: 212.8 kB / 282.7 MB, free: 7.477 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002954/0.01599, allocations: 260.1 kB / 282.9 MB, free: 7.145 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.321e-06/0.016, allocations: 4 kB / 282.9 MB, free: 7.141 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005415/0.01654, allocations: 292.6 kB / 283.2 MB, free: 6.832 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.798e-05/0.01659, allocations: 45.72 kB / 283.2 MB, free: 6.781 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.0166, allocations: 4 kB / 283.2 MB, free: 6.777 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003052/0.0169, allocations: 43.59 kB / 283.3 MB, free: 6.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002112/0.01712, allocations: 63.89 kB / 283.4 MB, free: 6.668 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009543/0.01807, allocations: 1.744 MB / 285.1 MB, free: 4.805 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000157/0.01823, allocations: 43.77 kB / 285.1 MB, free: 4.762 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.761e-05/0.01824, allocations: 15.98 kB / 285.2 MB, free: 4.746 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 0.0001058/0.01835, allocations: 172.6 kB / 285.3 MB, free: 4.566 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.078e-05/0.01838, allocations: 31.86 kB / 285.4 MB, free: 4.535 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.045e-05/0.01841, allocations: 25.77 kB / 285.4 MB, free: 4.504 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.01841, allocations: 4 kB / 285.4 MB, free: 4.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.01842, allocations: 0 / 285.4 MB, free: 4.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.01842, allocations: 0 / 285.4 MB, free: 4.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002817/0.0187, allocations: 408.9 kB / 285.8 MB, free: 4.055 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.0187, allocations: 0 / 285.8 MB, free: 4.055 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.176e-05/0.01877, allocations: 23.92 kB / 285.8 MB, free: 4.031 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001312/0.0189, allocations: 43.67 kB / 285.8 MB, free: 3.984 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.01891, allocations: 0 / 285.8 MB, free: 3.984 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007126/0.01962, allocations: 1.752 MB / 287.6 MB, free: 2.113 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.01962, allocations: 0 / 287.6 MB, free: 2.113 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002069/0.01983, allocations: 168 kB / 287.8 MB, free: 1.918 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.807e-05/0.01986, allocations: 27.78 kB / 287.8 MB, free: 1.891 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/0.01987, allocations: 4 kB / 287.8 MB, free: 1.887 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.93e-05/0.01995, allocations: 15.98 kB / 287.8 MB, free: 1.871 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.221e-05/0.02001, allocations: 15.97 kB / 287.8 MB, free: 1.855 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/0.02002, allocations: 7.938 kB / 287.8 MB, free: 1.848 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001391/0.02016, allocations: 217.1 kB / 288 MB, free: 1.637 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02016, allocations: 4.031 kB / 288 MB, free: 1.633 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002196/0.02038, allocations: 75.84 kB / 288.1 MB, free: 1.559 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.0001183/0.0205, allocations: 115.2 kB / 288.2 MB, free: 1.438 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004077/0.02091, allocations: 366.2 kB / 288.6 MB, free: 1.043 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.02091, allocations: 256 / 288.6 MB, free: 1.043 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001575/0.02107, allocations: 221.5 kB / 288.8 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002309/0.0213, allocations: 44.36 kB / 288.9 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008897/0.02219, allocations: 469.5 kB / 289.3 MB, free: 280 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.567e-05/0.02223, allocations: 80.31 kB / 289.4 MB, free: 180 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.306e-05/0.02231, allocations: 30.28 kB / 289.4 MB, free: 144 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.503e-05/0.02236, allocations: 24.5 kB / 289.4 MB, free: 120 kB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.02236, allocations: 0 / 289.4 MB, free: 120 kB / 266.7 MB Notification: Performance of Templates: time 0.005059/0.02742, allocations: 3.29 MB / 292.7 MB, free: 12.88 MB / 282.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 -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: 3.2221066472120583]