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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 180.2 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.576/1.576, allocations: 223.3 MB / 241.4 MB, free: 9.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007953/0.000795, allocations: 95.8 kB / 292.6 MB, free: 10.59 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000339/0.0003393, allocations: 11.94 kB / 352.4 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.29, allocations: 50.4 MB / 402.8 MB, free: 32.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1113/0.4014, allocations: 80.82 MB / 483.6 MB, free: 15.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002557/0.4017, allocations: 83.95 kB / 483.7 MB, free: 15.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01693/0.4187, allocations: 5.846 MB / 489.5 MB, free: 9.547 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.4187, allocations: 0 / 489.5 MB, free: 9.547 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.694e-05/0.4188, allocations: 8 kB / 489.5 MB, free: 9.539 MB / 362.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.001279/0.4201, allocations: 0.5912 MB / 490.1 MB, free: 8.891 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.4201, allocations: 12.03 kB / 490.1 MB, free: 8.879 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.4202, allocations: 36.5 kB / 490.2 MB, free: 8.844 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004919/0.4207, allocations: 284.1 kB / 490.4 MB, free: 8.527 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.599e-05/0.4208, allocations: 16.75 kB / 490.5 MB, free: 8.512 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.916e-05/0.4208, allocations: 24.38 kB / 490.5 MB, free: 8.488 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006776/0.4215, allocations: 290.3 kB / 490.8 MB, free: 8.191 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.4215, allocations: 4.172 kB / 490.8 MB, free: 8.188 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.79e-05/0.4216, allocations: 11.94 kB / 490.8 MB, free: 8.176 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.4216, allocations: 4 kB / 490.8 MB, free: 8.172 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007568/0.4224, allocations: 273.6 kB / 491 MB, free: 7.906 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002102/0.4245, allocations: 1.017 MB / 492.1 MB, free: 6.809 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008456/0.4253, allocations: 278.5 kB / 492.3 MB, free: 6.527 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003333/0.4257, allocations: 116.8 kB / 492.4 MB, free: 6.41 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.098e-05/0.4257, allocations: 4 kB / 492.5 MB, free: 6.406 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005842/0.4263, allocations: 197.7 kB / 492.6 MB, free: 6.191 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 2.274e-06/0.4263, allocations: 0 / 492.6 MB, free: 6.191 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.002362/0.4287, allocations: 0.7176 MB / 493.4 MB, free: 5.445 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.575e-05/0.4288, allocations: 110.8 kB / 493.5 MB, free: 5.312 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003598/0.4292, allocations: 270.5 kB / 493.7 MB, free: 5.047 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.035e-05/0.4292, allocations: 29.7 kB / 493.8 MB, free: 5.012 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.4294, allocations: 179.8 kB / 493.9 MB, free: 4.832 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.659e-05/0.4294, allocations: 43.45 kB / 494 MB, free: 4.789 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.201e-05/0.4295, allocations: 4 kB / 494 MB, free: 4.785 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.4296, allocations: 334.8 kB / 494.3 MB, free: 4.449 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003433/0.43, allocations: 115.9 kB / 494.4 MB, free: 4.336 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003748/0.4303, allocations: 199.5 kB / 494.6 MB, free: 4.105 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006952/0.431, allocations: 328.6 kB / 494.9 MB, free: 3.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.4311, allocations: 0 / 494.9 MB, free: 3.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001208/0.4323, allocations: 471.8 kB / 495.4 MB, free: 3.273 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.961e-05/0.4323, allocations: 41.64 kB / 495.4 MB, free: 3.227 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.4324, allocations: 0 / 495.4 MB, free: 3.227 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003935/0.4328, allocations: 88.77 kB / 495.5 MB, free: 3.137 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000209/0.433, allocations: 47.97 kB / 495.6 MB, free: 3.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00271/0.4357, allocations: 1.854 MB / 497.4 MB, free: 1.102 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000381/0.4361, allocations: 67.7 kB / 497.5 MB, free: 1.035 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.942e-05/0.4361, allocations: 12.12 kB / 497.5 MB, free: 1.023 MB / 362.7 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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001838/0.4363, allocations: 137.8 kB / 497.6 MB, free: 0.8789 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.526e-05/0.4364, allocations: 31.72 kB / 497.7 MB, free: 0.8477 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.25e-05/0.4365, allocations: 29.83 kB / 497.7 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.4365, allocations: 0 / 497.7 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.913e-06/0.4365, allocations: 0 / 497.7 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-06/0.4365, allocations: 3.938 kB / 497.7 MB, free: 0.8125 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003121/0.4368, allocations: 293.4 kB / 498 MB, free: 488 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.4368, allocations: 3.938 kB / 498 MB, free: 484 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001427/0.437, allocations: 31.97 kB / 498 MB, free: 452 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002835/0.4373, allocations: 80.81 kB / 498.1 MB, free: 368 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.96e-05/0.4373, allocations: 7.984 kB / 498.1 MB, free: 360 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002222/0.4395, allocations: 1.761 MB / 499.9 MB, free: 14.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4396, allocations: 0 / 499.9 MB, free: 14.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.4407, allocations: 398.7 kB / 0.4885 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.4408, allocations: 96.81 kB / 0.4886 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.077e-05/0.4408, allocations: 12.12 kB / 0.4886 GB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002554/0.4411, allocations: 43.95 kB / 0.4887 GB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.923e-05/0.4412, allocations: 23.91 kB / 0.4887 GB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.4412, allocations: 4 kB / 0.4887 GB, free: 13.85 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002743/0.4415, allocations: 194 kB / 0.4889 GB, free: 13.66 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4415, allocations: 3.938 kB / 0.4889 GB, free: 13.66 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005115/0.442, allocations: 79.84 kB / 0.489 GB, free: 13.58 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002678/0.4423, allocations: 103.2 kB / 0.4891 GB, free: 13.47 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001374/0.4437, allocations: 0.5111 MB / 0.4896 GB, free: 12.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.4437, allocations: 0 / 0.4896 GB, free: 12.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004931/0.4442, allocations: 254.9 kB / 0.4898 GB, free: 12.67 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003812/0.4446, allocations: 43.77 kB / 0.4899 GB, free: 12.63 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002962/0.4476, allocations: 1.044 MB / 0.4909 GB, free: 11.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003346/0.4479, allocations: 0.7482 MB / 0.4916 GB, free: 10.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001489/0.4481, allocations: 26.23 kB / 0.4916 GB, free: 10.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.275e-05/0.4482, allocations: 19.44 kB / 0.4917 GB, free: 10.75 MB / 378.7 MB Notification: Performance of SimCode: time 1.142e-06/0.4482, allocations: 0 / 0.4917 GB, free: 10.75 MB / 378.7 MB Notification: Performance of Templates: time 0.007809/0.456, allocations: 3.36 MB / 0.4949 GB, free: 7.422 MB / 378.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches