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.002405/0.002405, allocations: 91.61 kB / 20.96 MB, free: 3.461 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.002838/0.002838, allocations: 165.3 kB / 24.28 MB, free: 152 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.54/1.54, allocations: 177.1 MB / 204.6 MB, free: 5.625 MB / 186.7 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.974e-06/1.974e-06, allocations: 0 / 272.4 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.14e-05/3.337e-05, allocations: 2.312 kB / 272.4 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.007284/0.007318, allocations: 2.861 MB / 275.2 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002283/0.009601, allocations: 0.7205 MB / 275.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002383/0.009839, allocations: 4 kB / 275.9 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002778/0.01012, allocations: 55.44 kB / 276 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002681/0.01038, allocations: 103.2 kB / 276.1 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003436/0.01073, allocations: 115.7 kB / 276.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000532/0.01126, allocations: 402.2 kB / 276.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002264/0.01149, allocations: 92.48 kB / 276.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003399/0.01183, allocations: 223.5 kB / 276.9 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002646/0.01209, allocations: 143.5 kB / 277.1 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.333e-05/0.01216, allocations: 36 kB / 277.1 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.516e-05/0.01224, allocations: 36 kB / 277.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.992e-05/0.01234, allocations: 75.69 kB / 277.2 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001715/0.01251, allocations: 119.7 kB / 277.3 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006139/0.01312, allocations: 414.7 kB / 277.7 MB, free: 12.42 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.01313, allocations: 0 / 277.7 MB, free: 12.42 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.01313, allocations: 0 / 277.7 MB, free: 12.42 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.01314, allocations: 0 / 277.7 MB, free: 12.42 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.001525/0.01466, allocations: 0.7088 MB / 278.4 MB, free: 11.67 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.01471, allocations: 8.031 kB / 278.4 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001368/0.01484, allocations: 56.7 kB / 278.5 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004741/0.01532, allocations: 247.9 kB / 278.7 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.808e-05/0.01535, allocations: 16.88 kB / 278.8 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.102e-05/0.0154, allocations: 28.38 kB / 278.8 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000709/0.01611, allocations: 316.9 kB / 279.1 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.01612, allocations: 192 / 279.1 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.953e-05/0.01615, allocations: 8.375 kB / 279.1 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.539e-05/0.01616, allocations: 11.94 kB / 279.1 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006644/0.01683, allocations: 233.8 kB / 279.3 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002133/0.01896, allocations: 1.13 MB / 280.5 MB, free: 9.516 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000664/0.01962, allocations: 175 kB / 280.6 MB, free: 9.332 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002415/0.01987, allocations: 67.84 kB / 280.7 MB, free: 9.262 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.513e-05/0.0199, allocations: 7.938 kB / 280.7 MB, free: 9.254 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004018/0.0203, allocations: 148.4 kB / 280.9 MB, free: 9.086 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.423e-06/0.0203, allocations: 0 / 280.9 MB, free: 9.086 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.001099/0.0214, allocations: 277.1 kB / 281.1 MB, free: 8.805 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.435e-05/0.02148, allocations: 81.11 kB / 281.2 MB, free: 8.707 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004813/0.02196, allocations: 392.1 kB / 281.6 MB, free: 8.305 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.976e-05/0.02199, allocations: 25.7 kB / 281.6 MB, free: 8.273 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002446/0.02223, allocations: 274.6 kB / 281.9 MB, free: 8 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.904e-05/0.02228, allocations: 47.72 kB / 281.9 MB, free: 7.953 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/0.02241, allocations: 63.58 kB / 282 MB, free: 7.879 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003119/0.02272, allocations: 0.5196 MB / 282.5 MB, free: 7.348 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003051/0.02303, allocations: 105.9 kB / 282.6 MB, free: 7.238 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004542/0.02348, allocations: 276.7 kB / 282.9 MB, free: 6.891 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007018/0.02418, allocations: 348.1 kB / 283.2 MB, free: 6.473 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.02419, allocations: 0 / 283.2 MB, free: 6.473 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009149/0.0251, allocations: 400.2 kB / 283.6 MB, free: 6.059 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.337e-05/0.02515, allocations: 37.7 kB / 283.7 MB, free: 6.016 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.02516, allocations: 4 kB / 283.7 MB, free: 6.012 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003502/0.02551, allocations: 59.98 kB / 283.7 MB, free: 5.949 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002512/0.02576, allocations: 51.91 kB / 283.8 MB, free: 5.898 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001697/0.02746, allocations: 1.798 MB / 285.6 MB, free: 3.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003173/0.02778, allocations: 43.89 kB / 285.6 MB, free: 3.938 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.722e-05/0.02781, allocations: 15.94 kB / 285.6 MB, free: 3.922 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.0002265/0.02803, allocations: 195.7 kB / 285.8 MB, free: 3.723 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.592e-05/0.02809, allocations: 27.86 kB / 285.8 MB, free: 3.695 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.812e-05/0.02815, allocations: 25.77 kB / 285.9 MB, free: 3.664 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.02815, allocations: 3.938 kB / 285.9 MB, free: 3.66 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.02815, allocations: 0 / 285.9 MB, free: 3.66 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.02816, allocations: 11.97 kB / 285.9 MB, free: 3.648 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005837/0.02874, allocations: 453 kB / 286.3 MB, free: 3.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.02875, allocations: 0 / 286.3 MB, free: 3.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001285/0.02888, allocations: 19.97 kB / 286.3 MB, free: 3.141 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002351/0.02911, allocations: 47.59 kB / 286.4 MB, free: 3.09 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.59e-05/0.02913, allocations: 8.031 kB / 286.4 MB, free: 3.082 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001528/0.03065, allocations: 1.791 MB / 288.2 MB, free: 1.172 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.03066, allocations: 0 / 288.2 MB, free: 1.172 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007375/0.03139, allocations: 256 kB / 288.4 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.701e-05/0.03145, allocations: 31.78 kB / 288.5 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.286e-05/0.03148, allocations: 0 / 288.5 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/0.03167, allocations: 19.98 kB / 288.5 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.247e-05/0.03175, allocations: 19.97 kB / 288.5 MB, free: 0.8203 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.406e-05/0.03176, allocations: 4 kB / 288.5 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002831/0.03205, allocations: 257.1 kB / 288.8 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03205, allocations: 0 / 288.8 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003615/0.03241, allocations: 71.84 kB / 288.8 MB, free: 0.4961 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.0001634/0.03257, allocations: 107.2 kB / 288.9 MB, free: 392 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009813/0.03355, allocations: 470.5 kB / 289.4 MB, free: 15.88 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.03356, allocations: 4.062 kB / 289.4 MB, free: 15.88 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004526/0.03401, allocations: 257.4 kB / 289.7 MB, free: 15.61 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003504/0.03436, allocations: 48.27 kB / 289.7 MB, free: 15.56 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.03552, allocations: 474.8 kB / 290.2 MB, free: 15.06 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001846/0.0357, allocations: 150.7 kB / 290.3 MB, free: 14.89 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001289/0.03583, allocations: 30.28 kB / 290.3 MB, free: 14.86 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.454e-05/0.03591, allocations: 24.48 kB / 290.4 MB, free: 14.84 MB / 282.7 MB Notification: Performance of SimCode: time 1.062e-06/0.03591, allocations: 0 / 290.4 MB, free: 14.84 MB / 282.7 MB Notification: Performance of Templates: time 0.008735/0.04465, allocations: 3.289 MB / 293.7 MB, free: 11.61 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","/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.763729591970332]