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.00164/0.001641, allocations: 108 kB / 17.06 MB, free: 5.824 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.001872/0.001872, allocations: 191 kB / 18 MB, free: 4.977 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.574/1.574, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001033/0.001033, allocations: 52.02 kB / 351.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4524/0.4534, allocations: 49.43 MB / 400.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.005896/0.4594, allocations: 2.772 MB / 403.5 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001817/0.4612, allocations: 0.6661 MB / 404.2 MB, free: 5.434 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001951/0.4615, allocations: 4 kB / 404.2 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002233/0.4617, allocations: 43.58 kB / 404.2 MB, free: 5.387 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002691/0.462, allocations: 99.19 kB / 404.3 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004128/0.4624, allocations: 91.8 kB / 404.4 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000426/0.4629, allocations: 366.5 kB / 404.8 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002531/0.4631, allocations: 84.7 kB / 404.9 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001888/0.4633, allocations: 131.5 kB / 405 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000219/0.4635, allocations: 147.4 kB / 405.1 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.075e-05/0.4636, allocations: 28 kB / 405.2 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.585e-05/0.4637, allocations: 28 kB / 405.2 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.826e-05/0.4638, allocations: 71.69 kB / 405.3 MB, free: 4.355 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001801/0.464, allocations: 147.3 kB / 405.4 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004692/0.4644, allocations: 319.9 kB / 405.7 MB, free: 3.902 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.4645, allocations: 0 / 405.7 MB, free: 3.902 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4645, allocations: 0 / 405.7 MB, free: 3.902 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.4645, allocations: 0 / 405.7 MB, free: 3.902 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.001794/0.4663, allocations: 0.6379 MB / 406.4 MB, free: 3.211 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.811e-05/0.4664, allocations: 15.88 kB / 406.4 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.461e-05/0.4665, allocations: 32.59 kB / 406.4 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006411/0.4671, allocations: 279.7 kB / 406.7 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.485e-05/0.4672, allocations: 12.81 kB / 406.7 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.003e-05/0.4672, allocations: 24.38 kB / 406.7 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007174/0.4679, allocations: 282 kB / 407 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.468, allocations: 0 / 407 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.223e-05/0.468, allocations: 8 kB / 407 MB, free: 2.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.848e-06/0.468, allocations: 4 kB / 407 MB, free: 2.516 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007418/0.4688, allocations: 241.6 kB / 407.2 MB, free: 2.277 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001961/0.4707, allocations: 0.9558 MB / 408.2 MB, free: 1.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008542/0.4716, allocations: 242.5 kB / 408.4 MB, free: 1.004 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003364/0.472, allocations: 96.78 kB / 408.5 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.714e-05/0.472, allocations: 4 kB / 408.5 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004701/0.4725, allocations: 185.7 kB / 408.7 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.383e-06/0.4725, allocations: 3.938 kB / 408.7 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002323/0.4748, allocations: 0.6494 MB / 409.4 MB, free: 20 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001353/0.475, allocations: 110.8 kB / 409.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003445/0.4753, allocations: 262.6 kB / 409.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.931e-05/0.4754, allocations: 37.7 kB / 409.8 MB, free: 15.58 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001469/0.4755, allocations: 183.7 kB / 409.9 MB, free: 15.4 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.228e-05/0.4756, allocations: 39.45 kB / 410 MB, free: 15.36 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.386e-05/0.4757, allocations: 45.7 kB / 410 MB, free: 15.31 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.4759, allocations: 338.8 kB / 410.4 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003296/0.4762, allocations: 100.1 kB / 410.5 MB, free: 14.87 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003967/0.4766, allocations: 190.1 kB / 410.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007182/0.4773, allocations: 276.4 kB / 410.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.932e-06/0.4774, allocations: 8 kB / 410.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001159/0.4785, allocations: 443.5 kB / 411.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.64e-05/0.4786, allocations: 33.77 kB / 411.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.4786, allocations: 11.98 kB / 411.4 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004206/0.479, allocations: 76.73 kB / 411.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001939/0.4792, allocations: 47.95 kB / 411.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003062/0.4823, allocations: 2.001 MB / 413.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003476/0.4827, allocations: 59.64 kB / 413.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.862e-05/0.4827, allocations: 8 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.0001938/0.4829, allocations: 133.8 kB / 413.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.662e-05/0.483, allocations: 23.72 kB / 413.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.757e-05/0.483, allocations: 29.83 kB / 413.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.4831, allocations: 4 kB / 413.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.4831, allocations: 0 / 413.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.4831, allocations: 0 / 413.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003676/0.4834, allocations: 297.4 kB / 414.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.4835, allocations: 3.938 kB / 414.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/0.4836, allocations: 19.98 kB / 414.1 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003551/0.484, allocations: 80.8 kB / 414.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.766e-05/0.484, allocations: 7.922 kB / 414.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002628/0.4866, allocations: 1.916 MB / 416.1 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.4867, allocations: 3.938 kB / 416.1 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/0.4877, allocations: 365.4 kB / 416.4 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.097e-05/0.4878, allocations: 96.77 kB / 416.5 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.666e-05/0.4879, allocations: 11.98 kB / 416.6 MB, free: 8.285 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002374/0.4881, allocations: 27.97 kB / 416.6 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.4882, allocations: 23.97 kB / 416.6 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.604e-05/0.4883, allocations: 4 kB / 416.6 MB, free: 8.23 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002368/0.4885, allocations: 194 kB / 416.8 MB, free: 8.039 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.4885, allocations: 0 / 416.8 MB, free: 8.039 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004587/0.489, allocations: 75.84 kB / 416.9 MB, free: 7.965 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.0002866/0.4893, allocations: 111.1 kB / 417 MB, free: 7.844 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001345/0.4906, allocations: 488 kB / 417.5 MB, free: 7.344 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.4906, allocations: 448 / 417.5 MB, free: 7.344 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004804/0.4911, allocations: 238.5 kB / 417.7 MB, free: 7.098 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003472/0.4915, allocations: 50.22 kB / 417.7 MB, free: 7.051 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00288/0.4944, allocations: 0.8863 MB / 418.6 MB, free: 6.141 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.4947, allocations: 0.7479 MB / 419.4 MB, free: 5.363 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.266e-05/0.4948, allocations: 26.28 kB / 419.4 MB, free: 5.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.731e-05/0.4949, allocations: 19.44 kB / 419.4 MB, free: 5.32 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4949, allocations: 0 / 419.4 MB, free: 5.32 MB / 334.1 MB Notification: Performance of Templates: time 0.008299/0.5032, allocations: 3.831 MB / 423.2 MB, free: 1.527 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