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.0009236/0.0009236, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.0009273/0.0009273, allocations: 167.3 kB / 24.99 MB, free: 8.746 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.01/1.01, allocations: 177.1 MB / 205.3 MB, free: 5.641 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.403e-06/1.403e-06, allocations: 0 / 273.1 MB, free: 1.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.438e-05/2.578e-05, allocations: 5.547 kB / 273.1 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003381/0.003406, allocations: 2.896 MB / 276 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001005/0.004411, allocations: 0.7283 MB / 276.7 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.004538, allocations: 4 kB / 276.7 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001575/0.004696, allocations: 51.5 kB / 276.8 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001426/0.004838, allocations: 99.12 kB / 276.9 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002242/0.005062, allocations: 115.7 kB / 277 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003126/0.005375, allocations: 406.3 kB / 277.4 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003138/0.005689, allocations: 88.48 kB / 277.5 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001854/0.005874, allocations: 223.4 kB / 277.7 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001527/0.006027, allocations: 139.6 kB / 277.8 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.387e-05/0.006071, allocations: 36 kB / 277.9 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.555e-05/0.006106, allocations: 36 kB / 277.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.437e-05/0.006161, allocations: 79.67 kB / 278 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.194e-05/0.006253, allocations: 119.7 kB / 278.1 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000258/0.006511, allocations: 251.1 kB / 278.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.006513, allocations: 0 / 278.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.006514, allocations: 0 / 278.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.006519, allocations: 0 / 278.3 MB, free: 12.54 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.0008578/0.007377, allocations: 0.6973 MB / 279 MB, free: 11.79 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.007409, allocations: 8.031 kB / 279 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.133e-05/0.0075, allocations: 56.7 kB / 279.1 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002556/0.007755, allocations: 236 kB / 279.3 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.007772, allocations: 16.88 kB / 279.3 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.719e-05/0.007799, allocations: 28.38 kB / 279.4 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003427/0.008142, allocations: 257.6 kB / 279.6 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.008151, allocations: 4.125 kB / 279.6 MB, free: 11.15 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.247e-05/0.008174, allocations: 16.31 kB / 279.6 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.008184, allocations: 7.938 kB / 279.7 MB, free: 11.13 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001734/0.008358, allocations: 102.9 kB / 279.8 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001023/0.00938, allocations: 1.037 MB / 280.8 MB, free: 9.918 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002144/0.009595, allocations: 83.06 kB / 280.9 MB, free: 9.824 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.989e-05/0.009645, allocations: 27.72 kB / 280.9 MB, free: 9.793 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.009662, allocations: 4 kB / 280.9 MB, free: 9.789 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001334/0.009796, allocations: 104.4 kB / 281 MB, free: 9.664 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.082e-06/0.009797, allocations: 4 kB / 281 MB, free: 9.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003582/0.01016, allocations: 153.2 kB / 281.2 MB, free: 9.5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.44e-05/0.01019, allocations: 81.11 kB / 281.2 MB, free: 9.402 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000362/0.01055, allocations: 340 kB / 281.6 MB, free: 9.055 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.01057, allocations: 25.7 kB / 281.6 MB, free: 9.023 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.01068, allocations: 270.6 kB / 281.9 MB, free: 8.754 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.098e-05/0.0107, allocations: 31.73 kB / 281.9 MB, free: 8.723 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.201e-05/0.01076, allocations: 59.59 kB / 281.9 MB, free: 8.652 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.01088, allocations: 0.508 MB / 282.5 MB, free: 8.133 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.655e-05/0.01095, allocations: 61.91 kB / 282.5 MB, free: 8.066 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000128/0.01108, allocations: 212.8 kB / 282.7 MB, free: 7.781 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001818/0.01126, allocations: 255.1 kB / 283 MB, free: 7.457 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.01127, allocations: 3.984 kB / 283 MB, free: 7.453 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004342/0.0117, allocations: 296.2 kB / 283.3 MB, free: 7.141 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.691e-05/0.01173, allocations: 40.2 kB / 283.3 MB, free: 7.098 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.01173, allocations: 7.938 kB / 283.3 MB, free: 7.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002131/0.01195, allocations: 56.05 kB / 283.4 MB, free: 7.031 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001184/0.01206, allocations: 55.91 kB / 283.4 MB, free: 6.977 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007464/0.01281, allocations: 1.748 MB / 285.2 MB, free: 5.109 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.01294, allocations: 43.89 kB / 285.2 MB, free: 5.066 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.01295, allocations: 12 kB / 285.2 MB, free: 5.055 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.237e-05/0.01305, allocations: 180.4 kB / 285.4 MB, free: 4.867 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.588e-05/0.01307, allocations: 23.86 kB / 285.4 MB, free: 4.844 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.803e-05/0.0131, allocations: 29.77 kB / 285.5 MB, free: 4.809 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.0131, allocations: 0 / 285.5 MB, free: 4.809 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.0131, allocations: 4 kB / 285.5 MB, free: 4.805 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.01311, allocations: 0 / 285.5 MB, free: 4.805 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002687/0.01338, allocations: 412.9 kB / 285.9 MB, free: 4.355 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.01338, allocations: 0 / 285.9 MB, free: 4.355 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.589e-05/0.01343, allocations: 23.92 kB / 285.9 MB, free: 4.332 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00012/0.01355, allocations: 39.64 kB / 285.9 MB, free: 4.289 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.387e-06/0.01356, allocations: 4 kB / 285.9 MB, free: 4.285 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000669/0.01423, allocations: 1.755 MB / 287.7 MB, free: 2.41 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.01423, allocations: 0 / 287.7 MB, free: 2.41 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001757/0.01441, allocations: 164 kB / 287.8 MB, free: 2.219 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.532e-05/0.01443, allocations: 27.8 kB / 287.9 MB, free: 2.191 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.945e-05/0.01445, allocations: 3.984 kB / 287.9 MB, free: 2.188 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.979e-05/0.01453, allocations: 24.11 kB / 287.9 MB, free: 2.164 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.785e-05/0.01458, allocations: 7.984 kB / 287.9 MB, free: 2.156 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.01459, allocations: 11.98 kB / 287.9 MB, free: 2.145 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001237/0.01471, allocations: 217.1 kB / 288.1 MB, free: 1.934 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01471, allocations: 0 / 288.1 MB, free: 1.934 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002051/0.01492, allocations: 71.84 kB / 288.2 MB, free: 1.863 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.677e-05/0.01502, allocations: 107.2 kB / 288.3 MB, free: 1.75 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003571/0.01537, allocations: 377.5 kB / 288.7 MB, free: 1.344 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.01538, allocations: 0 / 288.7 MB, free: 1.344 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001318/0.01551, allocations: 209.5 kB / 288.9 MB, free: 1.117 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002096/0.01572, allocations: 53.42 kB / 288.9 MB, free: 1.062 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007241/0.01644, allocations: 461.8 kB / 289.4 MB, free: 0.582 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.06e-05/0.01648, allocations: 88.25 kB / 289.5 MB, free: 488 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.817e-05/0.01655, allocations: 26.28 kB / 289.5 MB, free: 456 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.919e-05/0.0166, allocations: 24.5 kB / 289.5 MB, free: 432 kB / 266.7 MB Notification: Performance of SimCode: time 5e-07/0.0166, allocations: 0 / 289.5 MB, free: 432 kB / 266.7 MB Notification: Performance of Templates: time 0.004881/0.02148, allocations: 3.288 MB / 292.8 MB, free: 13.18 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: 2.8567810559179634]