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.001856/0.001856, allocations: 110.3 kB / 17.06 MB, free: 6.02 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.002489/0.00249, allocations: 191 kB / 18 MB, free: 5.105 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.542/1.542, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 51.92 kB / 351.3 MB, free: 3.207 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4021/0.4033, allocations: 49.42 MB / 400.8 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.005148/0.4085, allocations: 2.764 MB / 403.5 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001633/0.4102, allocations: 0.6817 MB / 404.2 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001793/0.4104, allocations: 4 kB / 404.2 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001744/0.4106, allocations: 39.58 kB / 404.2 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002154/0.4108, allocations: 95.2 kB / 404.3 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004073/0.4112, allocations: 87.88 kB / 404.4 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004254/0.4117, allocations: 366.5 kB / 404.8 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002165/0.4119, allocations: 84.7 kB / 404.9 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001824/0.4121, allocations: 131.5 kB / 405 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000208/0.4123, allocations: 151.3 kB / 405.1 MB, free: 4.457 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.618e-05/0.4124, allocations: 28 kB / 405.2 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.526e-05/0.4124, allocations: 32 kB / 405.2 MB, free: 4.398 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.15e-05/0.4125, allocations: 63.7 kB / 405.3 MB, free: 4.336 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001662/0.4127, allocations: 139.3 kB / 405.4 MB, free: 4.199 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004431/0.4131, allocations: 327.9 kB / 405.7 MB, free: 3.883 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.745e-06/0.4132, allocations: 0 / 405.7 MB, free: 3.883 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.4132, allocations: 0 / 405.7 MB, free: 3.883 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.509e-05/0.4132, allocations: 4 kB / 405.7 MB, free: 3.879 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.001464/0.4147, allocations: 0.6418 MB / 406.4 MB, free: 3.184 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.682e-05/0.4147, allocations: 15.89 kB / 406.4 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.74e-05/0.4148, allocations: 28.59 kB / 406.4 MB, free: 3.141 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004618/0.4153, allocations: 279.7 kB / 406.7 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.4153, allocations: 12.81 kB / 406.7 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.396e-05/0.4154, allocations: 24.38 kB / 406.7 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006576/0.4161, allocations: 278 kB / 407 MB, free: 2.508 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.4161, allocations: 3.984 kB / 407 MB, free: 2.504 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.614e-05/0.4161, allocations: 8 kB / 407 MB, free: 2.496 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.928e-06/0.4161, allocations: 4 kB / 407 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007476/0.4169, allocations: 241.6 kB / 407.2 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001762/0.4187, allocations: 0.948 MB / 408.2 MB, free: 1.234 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008927/0.4196, allocations: 250.5 kB / 408.4 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003426/0.4199, allocations: 104.7 kB / 408.5 MB, free: 0.875 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.4199, allocations: 4 kB / 408.5 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000611/0.4206, allocations: 181 kB / 408.7 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 2.715e-06/0.4206, allocations: 3.938 kB / 408.7 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002594/0.4232, allocations: 0.6552 MB / 409.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.916e-05/0.4233, allocations: 102.8 kB / 409.5 MB, free: 15.86 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003278/0.4236, allocations: 266.6 kB / 409.7 MB, free: 15.6 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.4237, allocations: 29.7 kB / 409.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.4238, allocations: 187.7 kB / 409.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.043e-05/0.4239, allocations: 35.45 kB / 410 MB, free: 15.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.291e-05/0.424, allocations: 53.7 kB / 410 MB, free: 15.28 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.4241, allocations: 334.8 kB / 410.4 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003451/0.4244, allocations: 96.14 kB / 410.5 MB, free: 14.85 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003858/0.4248, allocations: 182.2 kB / 410.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007279/0.4256, allocations: 290 kB / 410.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.4256, allocations: 0 / 410.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001267/0.4269, allocations: 454 kB / 411.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.684e-05/0.4269, allocations: 33.7 kB / 411.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.4269, allocations: 0 / 411.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005135/0.4275, allocations: 88.8 kB / 411.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002351/0.4277, allocations: 39.95 kB / 411.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00314/0.4309, allocations: 1.998 MB / 413.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004131/0.4313, allocations: 67.67 kB / 413.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.416e-05/0.4313, allocations: 8 kB / 413.6 MB, free: 11.48 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.0001927/0.4315, allocations: 137.2 kB / 413.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.407e-05/0.4316, allocations: 23.72 kB / 413.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.131e-05/0.4316, allocations: 25.77 kB / 413.8 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.4317, allocations: 4 kB / 413.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.4317, allocations: 0 / 413.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.4317, allocations: 4 kB / 413.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003463/0.432, allocations: 293.4 kB / 414.1 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.432, allocations: 3.984 kB / 414.1 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001396/0.4322, allocations: 19.92 kB / 414.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002951/0.4325, allocations: 84.83 kB / 414.2 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.4325, allocations: 3.938 kB / 414.2 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002519/0.435, allocations: 1.916 MB / 416.1 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.838e-06/0.4351, allocations: 3.938 kB / 416.1 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.4362, allocations: 365.4 kB / 416.4 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.099e-05/0.4362, allocations: 96.77 kB / 416.5 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.015e-05/0.4363, allocations: 8 kB / 416.6 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002618/0.4366, allocations: 31.95 kB / 416.6 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.278e-05/0.4367, allocations: 27.97 kB / 416.6 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.097e-05/0.4367, allocations: 0 / 416.6 MB, free: 8.211 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001948/0.4369, allocations: 190 kB / 416.8 MB, free: 8.023 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4369, allocations: 0 / 416.8 MB, free: 8.023 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004509/0.4373, allocations: 71.91 kB / 416.9 MB, free: 7.953 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.0001761/0.4375, allocations: 111.2 kB / 417 MB, free: 7.832 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001429/0.439, allocations: 489.6 kB / 417.5 MB, free: 7.328 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.439, allocations: 4 kB / 417.5 MB, free: 7.324 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005303/0.4395, allocations: 243 kB / 417.7 MB, free: 7.074 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003874/0.4399, allocations: 49.55 kB / 417.7 MB, free: 7.031 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003493/0.4434, allocations: 0.8824 MB / 418.6 MB, free: 6.125 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.4439, allocations: 0.748 MB / 419.4 MB, free: 5.348 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001596/0.4441, allocations: 34.25 kB / 419.4 MB, free: 5.316 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.678e-05/0.4442, allocations: 15.44 kB / 419.4 MB, free: 5.301 MB / 334.1 MB Notification: Performance of SimCode: time 1.623e-06/0.4442, allocations: 4 kB / 419.4 MB, free: 5.297 MB / 334.1 MB Notification: Performance of Templates: time 0.01062/0.4548, allocations: 3.822 MB / 423.2 MB, free: 1.508 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