Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00164/0.001641, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.641/1.641, allocations: 226.7 MB / 245.5 MB, free: 6.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009933/0.0009933, allocations: 102.5 kB / 296.7 MB, free: 6.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009399/0.0009399, allocations: 51.92 kB / 356.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2009/0.2018, allocations: 50.45 MB / 407.1 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.003003/0.2049, allocations: 2.817 MB / 409.9 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000939/0.2059, allocations: 0.7153 MB / 410.6 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.206, allocations: 7.938 kB / 410.6 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001168/0.2061, allocations: 27.77 kB / 410.6 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001381/0.2063, allocations: 75.44 kB / 410.7 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002033/0.2065, allocations: 82.69 kB / 410.8 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002176/0.2067, allocations: 342.5 kB / 411.1 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.2068, allocations: 69.14 kB / 411.2 MB, free: 23.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001139/0.207, allocations: 123.5 kB / 411.3 MB, free: 23.56 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00013/0.2071, allocations: 143.3 kB / 411.4 MB, free: 23.42 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.033e-05/0.2071, allocations: 16 kB / 411.5 MB, free: 23.4 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.067e-05/0.2072, allocations: 27.94 kB / 411.5 MB, free: 23.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.204e-05/0.2072, allocations: 51.77 kB / 411.5 MB, free: 23.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.589e-05/0.2073, allocations: 135.2 kB / 411.7 MB, free: 23.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001971/0.2075, allocations: 312.5 kB / 412 MB, free: 22.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2076, allocations: 0 / 412 MB, free: 22.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2076, allocations: 0 / 412 MB, free: 22.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.2076, allocations: 3.938 kB / 412 MB, free: 22.88 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001036/0.2086, allocations: 0.638 MB / 412.6 MB, free: 22.19 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.058e-05/0.2087, allocations: 8.594 kB / 412.6 MB, free: 22.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.669e-05/0.2087, allocations: 32.56 kB / 412.7 MB, free: 22.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002278/0.209, allocations: 279.6 kB / 412.9 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.209, allocations: 12.81 kB / 412.9 MB, free: 21.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.778e-05/0.209, allocations: 24.38 kB / 413 MB, free: 21.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000518/0.2095, allocations: 278.1 kB / 413.2 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-06/0.2096, allocations: 0 / 413.2 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.207e-05/0.2096, allocations: 8 kB / 413.2 MB, free: 21.51 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.2096, allocations: 4 kB / 413.3 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000645/0.2102, allocations: 249.5 kB / 413.5 MB, free: 21.26 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00122/0.2115, allocations: 0.9519 MB / 414.4 MB, free: 20.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007424/0.2122, allocations: 238.6 kB / 414.7 MB, free: 19.99 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002954/0.2125, allocations: 100.8 kB / 414.8 MB, free: 19.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.962e-05/0.2126, allocations: 4 kB / 414.8 MB, free: 19.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004501/0.213, allocations: 185.7 kB / 415 MB, free: 19.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.503e-06/0.213, allocations: 224 / 415 MB, free: 19.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.002129/0.2152, allocations: 0.6473 MB / 415.6 MB, free: 19.01 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.101e-05/0.2152, allocations: 114.8 kB / 415.7 MB, free: 18.87 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002019/0.2154, allocations: 262.6 kB / 416 MB, free: 18.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/0.2155, allocations: 25.7 kB / 416 MB, free: 18.58 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.3e-05/0.2155, allocations: 179.8 kB / 416.2 MB, free: 18.4 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.529e-05/0.2156, allocations: 39.45 kB / 416.2 MB, free: 18.36 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.019e-05/0.2157, allocations: 49.61 kB / 416.3 MB, free: 18.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.667e-05/0.2157, allocations: 338.8 kB / 416.6 MB, free: 17.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003139/0.2161, allocations: 99.78 kB / 416.7 MB, free: 17.87 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003198/0.2164, allocations: 169.5 kB / 416.9 MB, free: 17.67 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005853/0.217, allocations: 263.2 kB / 417.1 MB, free: 17.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.217, allocations: 0 / 417.1 MB, free: 17.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001059/0.2181, allocations: 439.5 kB / 417.5 MB, free: 16.94 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/0.2181, allocations: 33.7 kB / 417.6 MB, free: 16.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.2181, allocations: 4 kB / 417.6 MB, free: 16.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003342/0.2184, allocations: 80.86 kB / 417.7 MB, free: 16.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001774/0.2186, allocations: 39.91 kB / 417.7 MB, free: 16.78 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001945/0.2206, allocations: 1.76 MB / 419.5 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000293/0.2209, allocations: 47.8 kB / 419.5 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.019e-05/0.2209, allocations: 12.06 kB / 419.5 MB, free: 14.82 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 17 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001058/0.221, allocations: 146.3 kB / 419.7 MB, free: 14.67 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.824e-05/0.2211, allocations: 19.72 kB / 419.7 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.921e-05/0.2211, allocations: 29.83 kB / 419.7 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.706e-06/0.2211, allocations: 4.031 kB / 419.7 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.2211, allocations: 7.875 kB / 419.7 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.2211, allocations: 0 / 419.7 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001732/0.2213, allocations: 289.5 kB / 420 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.2213, allocations: 128 / 420 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001285/0.2215, allocations: 31.97 kB / 420 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002356/0.2217, allocations: 72.8 kB / 420.1 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.2217, allocations: 4 kB / 420.1 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001647/0.2234, allocations: 1.636 MB / 421.7 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.2234, allocations: 0 / 421.7 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001353/0.2248, allocations: 1.027 MB / 422.8 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.522e-05/0.2248, allocations: 100.8 kB / 422.9 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.324e-05/0.2249, allocations: 11.94 kB / 422.9 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002433/0.2251, allocations: 27.97 kB / 422.9 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.726e-05/0.2252, allocations: 27.84 kB / 422.9 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.257e-05/0.2252, allocations: 4.188 kB / 422.9 MB, free: 11.12 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001361/0.2254, allocations: 198 kB / 423.1 MB, free: 10.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2254, allocations: 0 / 423.1 MB, free: 10.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000422/0.2258, allocations: 67.84 kB / 423.2 MB, free: 10.87 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001052/0.2259, allocations: 103.2 kB / 423.3 MB, free: 10.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000832/0.2267, allocations: 409.7 kB / 423.7 MB, free: 10.33 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.2268, allocations: 0 / 423.7 MB, free: 10.33 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003993/0.2272, allocations: 234.4 kB / 423.9 MB, free: 10.09 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002945/0.2275, allocations: 44.47 kB / 424 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000845/0.2283, allocations: 0.669 MB / 424.6 MB, free: 9.336 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001211/0.2285, allocations: 0.7482 MB / 425.4 MB, free: 8.562 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.585e-05/0.2286, allocations: 30.27 kB / 425.4 MB, free: 8.535 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.999e-05/0.2286, allocations: 19.44 kB / 425.4 MB, free: 8.516 MB / 298.7 MB Notification: Performance of SimCode: time 3.1e-07/0.2286, allocations: 0 / 425.4 MB, free: 8.516 MB / 298.7 MB Notification: Performance of Templates: time 0.005651/0.2343, allocations: 3.659 MB / 429.1 MB, free: 4.898 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/SchmittTrigger/SchmittTrigger.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches