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.001318/0.001318, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001385/0.001385, 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 0.9712/0.9712, allocations: 177.1 MB / 205 MB, free: 5.609 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.523e-06/1.523e-06, allocations: 0 / 273 MB, free: 1.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.862e-05/2.014e-05, allocations: 2.312 kB / 273 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.002961/0.002981, allocations: 2.903 MB / 275.9 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009098/0.003891, allocations: 0.7322 MB / 276.7 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001124/0.004003, allocations: 7.938 kB / 276.7 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001397/0.004143, allocations: 51.5 kB / 276.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.004286, allocations: 107.1 kB / 276.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002241/0.00451, allocations: 107.7 kB / 276.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005257/0.005036, allocations: 402.3 kB / 277.3 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001617/0.005198, allocations: 88.48 kB / 277.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001767/0.005374, allocations: 223.5 kB / 277.6 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001464/0.005521, allocations: 131.6 kB / 277.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.306e-05/0.005564, allocations: 36 kB / 277.8 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.728e-05/0.005601, allocations: 40 kB / 277.8 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.201e-05/0.005653, allocations: 83.66 kB / 277.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.179e-05/0.005745, allocations: 119.7 kB / 278 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002467/0.005992, allocations: 259 kB / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.315e-06/0.005994, allocations: 0 / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.005995, allocations: 0 / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.459e-06/0.005999, allocations: 0 / 278.3 MB, free: 12.2 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.0008186/0.006818, allocations: 0.6895 MB / 279 MB, free: 11.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.006854, allocations: 8.031 kB / 279 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.612e-05/0.00694, allocations: 56.69 kB / 279 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002473/0.007188, allocations: 232 kB / 279.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.007208, allocations: 24.81 kB / 279.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.919e-05/0.007237, allocations: 24.38 kB / 279.3 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003651/0.007602, allocations: 257.6 kB / 279.6 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.007612, allocations: 192 / 279.6 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.15e-05/0.007634, allocations: 16.31 kB / 279.6 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.007646, allocations: 11.94 kB / 279.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001692/0.007816, allocations: 106.9 kB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009786/0.008794, allocations: 1.029 MB / 280.7 MB, free: 9.594 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002728/0.009067, allocations: 83.11 kB / 280.8 MB, free: 9.5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.027e-05/0.009117, allocations: 31.67 kB / 280.8 MB, free: 9.465 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.009137, allocations: 0 / 280.8 MB, free: 9.465 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001372/0.009274, allocations: 112.5 kB / 280.9 MB, free: 9.332 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 9.02e-07/0.009275, allocations: 4 kB / 280.9 MB, free: 9.328 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003641/0.009639, allocations: 153.1 kB / 281.1 MB, free: 9.168 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.949e-05/0.009678, allocations: 81.11 kB / 281.2 MB, free: 9.07 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002179/0.009896, allocations: 336 kB / 281.5 MB, free: 8.727 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.00992, allocations: 29.7 kB / 281.5 MB, free: 8.691 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.01003, allocations: 262.6 kB / 281.8 MB, free: 8.43 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.386e-05/0.01005, allocations: 43.72 kB / 281.8 MB, free: 8.387 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.353e-05/0.01011, allocations: 55.72 kB / 281.9 MB, free: 8.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.01024, allocations: 0.5079 MB / 282.4 MB, free: 7.801 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.359e-05/0.01031, allocations: 53.92 kB / 282.4 MB, free: 7.742 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001357/0.01045, allocations: 216.8 kB / 282.7 MB, free: 7.453 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001843/0.01063, allocations: 252.2 kB / 282.9 MB, free: 7.129 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.01064, allocations: 4 kB / 282.9 MB, free: 7.125 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003162/0.01095, allocations: 308.1 kB / 283.2 MB, free: 6.801 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.01098, allocations: 36.2 kB / 283.2 MB, free: 6.762 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.01099, allocations: 7.938 kB / 283.3 MB, free: 6.754 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002078/0.01119, allocations: 52.08 kB / 283.3 MB, free: 6.699 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.01131, allocations: 59.91 kB / 283.4 MB, free: 6.641 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007186/0.01203, allocations: 1.736 MB / 285.1 MB, free: 4.785 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000128/0.01216, allocations: 47.89 kB / 285.1 MB, free: 4.738 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.497e-05/0.01218, allocations: 12 kB / 285.2 MB, free: 4.727 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.26e-05/0.01227, allocations: 176.4 kB / 285.3 MB, free: 4.543 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.989e-05/0.0123, allocations: 31.86 kB / 285.4 MB, free: 4.512 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.546e-05/0.01232, allocations: 21.77 kB / 285.4 MB, free: 4.484 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.01233, allocations: 4 kB / 285.4 MB, free: 4.48 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.01233, allocations: 0 / 285.4 MB, free: 4.48 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.01233, allocations: 4 kB / 285.4 MB, free: 4.477 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002548/0.01259, allocations: 412.9 kB / 285.8 MB, free: 4.027 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.01259, allocations: 0 / 285.8 MB, free: 4.027 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.181e-05/0.01264, allocations: 15.98 kB / 285.8 MB, free: 4.012 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001176/0.01276, allocations: 39.66 kB / 285.8 MB, free: 3.969 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.01277, allocations: 12.02 kB / 285.9 MB, free: 3.957 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006151/0.01338, allocations: 1.748 MB / 287.6 MB, free: 2.09 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.01338, allocations: 0 / 287.6 MB, free: 2.09 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003024/0.01369, allocations: 167.9 kB / 287.8 MB, free: 1.895 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.558e-05/0.01371, allocations: 27.78 kB / 287.8 MB, free: 1.867 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.84e-05/0.01373, allocations: 8.125 kB / 287.8 MB, free: 1.859 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.562e-05/0.01381, allocations: 15.98 kB / 287.8 MB, free: 1.844 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.521e-05/0.01386, allocations: 19.97 kB / 287.8 MB, free: 1.824 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.377e-06/0.01387, allocations: 3.984 kB / 287.8 MB, free: 1.82 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001195/0.01399, allocations: 217.1 kB / 288.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01399, allocations: 0 / 288.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002067/0.0142, allocations: 79.84 kB / 288.1 MB, free: 1.531 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 8.591e-05/0.01428, allocations: 99.28 kB / 288.2 MB, free: 1.426 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003951/0.01468, allocations: 373.5 kB / 288.6 MB, free: 1.023 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.01468, allocations: 0 / 288.6 MB, free: 1.023 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001333/0.01481, allocations: 218.5 kB / 288.8 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002109/0.01502, allocations: 56.3 kB / 288.9 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007116/0.01574, allocations: 454.6 kB / 289.3 MB, free: 260 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.502e-05/0.01578, allocations: 84.25 kB / 289.4 MB, free: 156 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.703e-05/0.01585, allocations: 26.3 kB / 289.4 MB, free: 124 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.394e-05/0.0159, allocations: 28.48 kB / 289.4 MB, free: 96 kB / 266.7 MB Notification: Performance of SimCode: time 7.11e-07/0.0159, allocations: 0 / 289.4 MB, free: 96 kB / 266.7 MB Notification: Performance of Templates: time 0.005006/0.02091, allocations: 3.459 MB / 292.9 MB, free: 12.69 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.733107937965542]