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.001599/0.001599, allocations: 111.6 kB / 17.29 MB, free: 6.188 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.001823/0.001823, allocations: 193.3 kB / 18.21 MB, free: 5.266 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.437/1.437, allocations: 222.9 MB / 241.9 MB, free: 15.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 47.58 kB / 300.8 MB, free: 6.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1371, allocations: 49.45 MB / 350.3 MB, free: 4.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004141/0.1413, allocations: 2.791 MB / 353 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001251/0.1426, allocations: 0.67 MB / 353.7 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002088/0.1428, allocations: 4 kB / 353.7 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001796/0.143, allocations: 35.69 kB / 353.8 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002414/0.1433, allocations: 79.39 kB / 353.8 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002844/0.1436, allocations: 83.86 kB / 353.9 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004551/0.144, allocations: 362.5 kB / 354.3 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001933/0.1442, allocations: 84.56 kB / 354.3 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002024/0.1444, allocations: 131.5 kB / 354.5 MB, free: 484 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000202/0.1447, allocations: 151.3 kB / 354.6 MB, free: 332 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.559e-05/0.1447, allocations: 28 kB / 354.7 MB, free: 304 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.66e-05/0.1448, allocations: 32 kB / 354.7 MB, free: 272 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.784e-05/0.1449, allocations: 63.75 kB / 354.7 MB, free: 208 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001417/0.145, allocations: 147.3 kB / 354.9 MB, free: 60 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002799/0.1453, allocations: 251.8 kB / 355.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1453, allocations: 0 / 355.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1453, allocations: 0 / 355.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.374e-05/0.1454, allocations: 0 / 355.1 MB, free: 15.81 MB / 302.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.00125/0.1466, allocations: 0.6445 MB / 355.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.1467, allocations: 15.89 kB / 355.8 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.165e-05/0.1467, allocations: 28.56 kB / 355.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003221/0.1471, allocations: 279.6 kB / 356.1 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.896e-05/0.1471, allocations: 12.81 kB / 356.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.501e-05/0.1471, allocations: 24.38 kB / 356.1 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006412/0.1478, allocations: 282 kB / 356.4 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.1478, allocations: 0 / 356.4 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.747e-05/0.1478, allocations: 4 kB / 356.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.1479, allocations: 8 kB / 356.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007163/0.1486, allocations: 245.6 kB / 356.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001613/0.1502, allocations: 0.9364 MB / 357.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007802/0.151, allocations: 242.5 kB / 357.8 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003226/0.1513, allocations: 112.9 kB / 357.9 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.1514, allocations: 3.984 kB / 357.9 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004842/0.1519, allocations: 185 kB / 358.1 MB, free: 12.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.603e-06/0.1519, allocations: 0 / 358.1 MB, free: 12.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002218/0.1541, allocations: 0.6551 MB / 358.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.726e-05/0.1542, allocations: 106.8 kB / 358.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002745/0.1545, allocations: 274.5 kB / 359.2 MB, free: 11.53 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.826e-05/0.1545, allocations: 29.7 kB / 359.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.1546, allocations: 175.9 kB / 359.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.932e-05/0.1547, allocations: 43.39 kB / 359.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.685e-05/0.1548, allocations: 53.61 kB / 359.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.1549, allocations: 330.8 kB / 359.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000327/0.1552, allocations: 103.9 kB / 359.9 MB, free: 10.78 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003776/0.1556, allocations: 178.2 kB / 360 MB, free: 10.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006757/0.1563, allocations: 293.1 kB / 360.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.1563, allocations: 0 / 360.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.00117/0.1575, allocations: 439.7 kB / 360.8 MB, free: 9.805 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.957e-05/0.1576, allocations: 37.69 kB / 360.8 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.1576, allocations: 0 / 360.8 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003475/0.1579, allocations: 88.8 kB / 360.9 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001916/0.1581, allocations: 35.97 kB / 360.9 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002735/0.1609, allocations: 2.009 MB / 362.9 MB, free: 7.484 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003431/0.1612, allocations: 51.88 kB / 363 MB, free: 7.434 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.667e-05/0.1613, allocations: 8 kB / 363 MB, free: 7.426 MB / 302.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.0001402/0.1614, allocations: 133.8 kB / 363.1 MB, free: 7.285 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.14e-05/0.1615, allocations: 27.7 kB / 363.1 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.683e-05/0.1615, allocations: 29.78 kB / 363.2 MB, free: 7.227 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.1615, allocations: 4 kB / 363.2 MB, free: 7.223 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.1615, allocations: 3.938 kB / 363.2 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1615, allocations: 3.984 kB / 363.2 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002687/0.1618, allocations: 297.3 kB / 363.5 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.1618, allocations: 3.938 kB / 363.5 MB, free: 6.871 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001371/0.162, allocations: 23.97 kB / 363.5 MB, free: 6.848 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000261/0.1622, allocations: 76.8 kB / 363.6 MB, free: 6.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.454e-05/0.1623, allocations: 3.938 kB / 363.6 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002299/0.1646, allocations: 1.92 MB / 365.5 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.1646, allocations: 8 kB / 365.5 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.1657, allocations: 361.4 kB / 365.9 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.1658, allocations: 104.8 kB / 366 MB, free: 4.207 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.66e-05/0.1658, allocations: 4 kB / 366 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002656/0.1661, allocations: 31.97 kB / 366 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.795e-05/0.1662, allocations: 23.97 kB / 366 MB, free: 4.148 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.313e-05/0.1662, allocations: 4 kB / 366 MB, free: 4.145 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001827/0.1664, allocations: 194 kB / 366.2 MB, free: 3.957 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1664, allocations: 0 / 366.2 MB, free: 3.957 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004057/0.1668, allocations: 71.84 kB / 366.3 MB, free: 3.887 MB / 302.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.0001424/0.167, allocations: 115.1 kB / 366.4 MB, free: 3.762 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001279/0.1683, allocations: 474.2 kB / 366.9 MB, free: 3.273 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.1683, allocations: 4.062 kB / 366.9 MB, free: 3.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004757/0.1688, allocations: 233.7 kB / 367.1 MB, free: 3.031 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003494/0.1691, allocations: 56.34 kB / 367.2 MB, free: 2.977 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002953/0.1721, allocations: 1.001 MB / 368.2 MB, free: 1.938 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.1724, allocations: 0.7556 MB / 368.9 MB, free: 1.156 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.462e-05/0.1725, allocations: 19.44 kB / 368.9 MB, free: 1.137 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1725, allocations: 0 / 368.9 MB, free: 1.137 MB / 302.1 MB Notification: Performance of Templates: time 0.1557/0.3282, allocations: 4.169 MB / 373.1 MB, free: 24.96 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","/var/lib/jenkins1/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