Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 112.6 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 191.9 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.567/1.567, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 47.94 kB / 351.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.463/0.4644, allocations: 49.43 MB / 400.8 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.005472/0.47, allocations: 2.761 MB / 403.5 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.4717, allocations: 0.67 MB / 404.2 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001717/0.4718, allocations: 4 kB / 404.2 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002032/0.4721, allocations: 43.58 kB / 404.2 MB, free: 5.414 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002465/0.4724, allocations: 99.11 kB / 404.3 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003782/0.4728, allocations: 95.81 kB / 404.4 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004541/0.4732, allocations: 362.5 kB / 404.8 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002525/0.4735, allocations: 80.72 kB / 404.9 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002155/0.4737, allocations: 135.5 kB / 405 MB, free: 4.652 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002193/0.4739, allocations: 143.4 kB / 405.1 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.166e-05/0.474, allocations: 28 kB / 405.2 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.588e-05/0.4741, allocations: 35.94 kB / 405.2 MB, free: 4.449 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.659e-05/0.4742, allocations: 63.75 kB / 405.3 MB, free: 4.387 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000194/0.4744, allocations: 151.2 kB / 405.4 MB, free: 4.238 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004901/0.4749, allocations: 322.7 kB / 405.7 MB, free: 3.922 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.4749, allocations: 0 / 405.7 MB, free: 3.922 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4749, allocations: 0 / 405.7 MB, free: 3.922 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.4749, allocations: 0 / 405.7 MB, free: 3.922 MB / 318.1 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.001495/0.4764, allocations: 0.6455 MB / 406.4 MB, free: 3.223 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.4765, allocations: 23.83 kB / 406.4 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.474e-05/0.4766, allocations: 28.75 kB / 406.4 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004784/0.4771, allocations: 275.9 kB / 406.7 MB, free: 2.863 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.936e-05/0.4771, allocations: 16.81 kB / 406.7 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.163e-05/0.4771, allocations: 20.38 kB / 406.7 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006558/0.4778, allocations: 282 kB / 407 MB, free: 2.539 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.4778, allocations: 0 / 407 MB, free: 2.539 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.053e-05/0.4779, allocations: 12 kB / 407 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.789e-06/0.4779, allocations: 4 kB / 407 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007491/0.4786, allocations: 245.6 kB / 407.3 MB, free: 2.281 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001666/0.4803, allocations: 0.9405 MB / 408.2 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000841/0.4812, allocations: 242.5 kB / 408.4 MB, free: 1.023 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003327/0.4815, allocations: 104.8 kB / 408.5 MB, free: 0.918 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.292e-05/0.4816, allocations: 3.984 kB / 408.5 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004987/0.4821, allocations: 181.1 kB / 408.7 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.884e-06/0.4821, allocations: 0 / 408.7 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002353/0.4844, allocations: 0.6591 MB / 409.4 MB, free: 32 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.4846, allocations: 106.9 kB / 409.5 MB, free: 15.9 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003228/0.4849, allocations: 274.5 kB / 409.7 MB, free: 15.63 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.058e-05/0.4849, allocations: 25.7 kB / 409.8 MB, free: 15.6 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001508/0.4851, allocations: 184.1 kB / 409.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.551e-05/0.4851, allocations: 47.58 kB / 410 MB, free: 15.37 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.306e-05/0.4852, allocations: 49.7 kB / 410 MB, free: 15.31 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.4854, allocations: 339 kB / 410.4 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003499/0.4858, allocations: 95.92 kB / 410.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004014/0.4862, allocations: 182.2 kB / 410.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007122/0.4869, allocations: 296.4 kB / 410.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.4869, allocations: 0 / 410.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0012/0.4881, allocations: 443.7 kB / 411.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.718e-05/0.4882, allocations: 33.7 kB / 411.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.4882, allocations: 0 / 411.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004357/0.4886, allocations: 88.8 kB / 411.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002008/0.4888, allocations: 35.97 kB / 411.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003551/0.4924, allocations: 2.021 MB / 413.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003895/0.4928, allocations: 51.88 kB / 413.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.088e-05/0.4929, allocations: 12 kB / 413.6 MB, free: 11.5 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 19 * 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.0002412/0.4931, allocations: 133.8 kB / 413.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.578e-05/0.4932, allocations: 23.86 kB / 413.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.168e-05/0.4932, allocations: 29.78 kB / 413.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.4932, allocations: 3.984 kB / 413.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.4932, allocations: 3.938 kB / 413.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.4933, allocations: 0 / 413.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003622/0.4936, allocations: 297.4 kB / 414.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4936, allocations: 0 / 414.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001307/0.4938, allocations: 23.97 kB / 414.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002711/0.4941, allocations: 72.8 kB / 414.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.653e-05/0.4941, allocations: 7.938 kB / 414.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002568/0.4967, allocations: 1.924 MB / 416.1 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.4967, allocations: 7.922 kB / 416.1 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001077/0.4978, allocations: 353.6 kB / 416.5 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.547e-05/0.4979, allocations: 108.9 kB / 416.6 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.352e-05/0.4979, allocations: 0 / 416.6 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002356/0.4981, allocations: 35.95 kB / 416.6 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.461e-05/0.4982, allocations: 15.98 kB / 416.6 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.4983, allocations: 8 kB / 416.6 MB, free: 8.23 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000206/0.4985, allocations: 194 kB / 416.8 MB, free: 8.039 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4985, allocations: 0 / 416.8 MB, free: 8.039 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004166/0.4989, allocations: 71.89 kB / 416.9 MB, free: 7.969 MB / 334.1 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.0001626/0.4991, allocations: 115.1 kB / 417 MB, free: 7.844 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001324/0.5004, allocations: 481.9 kB / 417.5 MB, free: 7.348 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.5004, allocations: 0 / 417.5 MB, free: 7.348 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004686/0.5009, allocations: 239 kB / 417.7 MB, free: 7.102 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003198/0.5012, allocations: 57.28 kB / 417.8 MB, free: 7.051 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002931/0.5042, allocations: 0.8961 MB / 418.7 MB, free: 6.133 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003424/0.5045, allocations: 0.7518 MB / 419.4 MB, free: 5.352 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001129/0.5046, allocations: 22.3 kB / 419.4 MB, free: 5.332 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.249e-05/0.5047, allocations: 23.44 kB / 419.5 MB, free: 5.309 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.5047, allocations: 0 / 419.5 MB, free: 5.309 MB / 334.1 MB Notification: Performance of Templates: time 0.008192/0.5129, allocations: 3.826 MB / 423.3 MB, free: 1.516 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches