Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.SchmittTrigger,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.SchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,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.SchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001413/0.001414, allocations: 108.3 kB / 17.68 MB, free: 5.332 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.001136/0.001136, allocations: 192 kB / 18.62 MB, free: 4.41 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.475/1.475, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009693/0.0009695, allocations: 44.22 kB / 302.1 MB, free: 5.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.122, allocations: 49.44 MB / 351.5 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004114/0.1261, allocations: 2.744 MB / 354.3 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00124/0.1274, allocations: 0.6778 MB / 354.9 MB, free: 232 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001349/0.1275, allocations: 8 kB / 354.9 MB, free: 224 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001515/0.1277, allocations: 43.58 kB / 355 MB, free: 180 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001821/0.1279, allocations: 87.25 kB / 355.1 MB, free: 92 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002828/0.1282, allocations: 91.83 kB / 355.2 MB, free: 0 / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004066/0.1286, allocations: 362.5 kB / 355.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002109/0.1288, allocations: 88.56 kB / 355.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001558/0.129, allocations: 135.4 kB / 355.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001833/0.1292, allocations: 147.4 kB / 355.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.858e-05/0.1292, allocations: 31.94 kB / 355.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.431e-05/0.1293, allocations: 28 kB / 355.9 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.464e-05/0.1294, allocations: 59.81 kB / 356 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001509/0.1295, allocations: 147.2 kB / 356.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003324/0.1299, allocations: 330.8 kB / 356.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1299, allocations: 0 / 356.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1299, allocations: 0 / 356.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.1299, allocations: 4 kB / 356.5 MB, free: 14.69 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.001275/0.1312, allocations: 0.6456 MB / 357.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.1312, allocations: 8.031 kB / 357.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.323e-05/0.1313, allocations: 36.56 kB / 357.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003945/0.1317, allocations: 275.6 kB / 357.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.349e-05/0.1317, allocations: 20.81 kB / 357.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.619e-05/0.1318, allocations: 16.38 kB / 357.5 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00062/0.1324, allocations: 278.1 kB / 357.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.1324, allocations: 4 kB / 357.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.587e-05/0.1325, allocations: 8 kB / 357.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.1325, allocations: 4 kB / 357.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006857/0.1332, allocations: 253.5 kB / 358 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001474/0.1346, allocations: 0.9364 MB / 358.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007955/0.1355, allocations: 246.5 kB / 359.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003057/0.1358, allocations: 104.8 kB / 359.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.504e-05/0.1358, allocations: 0 / 359.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004335/0.1362, allocations: 181.8 kB / 359.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.353e-06/0.1363, allocations: 0 / 359.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002189/0.1385, allocations: 0.6512 MB / 360.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.691e-05/0.1385, allocations: 106.8 kB / 360.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002796/0.1388, allocations: 266.5 kB / 360.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.019e-05/0.1389, allocations: 33.7 kB / 360.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.139, allocations: 171.9 kB / 360.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.04e-05/0.139, allocations: 47.3 kB / 360.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.694e-05/0.1392, allocations: 45.92 kB / 360.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.1393, allocations: 334.8 kB / 361.1 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003262/0.1396, allocations: 103.8 kB / 361.2 MB, free: 9.668 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003731/0.14, allocations: 168.4 kB / 361.3 MB, free: 9.473 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006438/0.1407, allocations: 270.9 kB / 361.6 MB, free: 9.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.1407, allocations: 0 / 361.6 MB, free: 9.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001151/0.1418, allocations: 431.6 kB / 362 MB, free: 8.742 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.691e-05/0.1419, allocations: 33.7 kB / 362.1 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.575e-06/0.1419, allocations: 0 / 362.1 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004027/0.1423, allocations: 80.86 kB / 362.1 MB, free: 8.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001903/0.1425, allocations: 39.91 kB / 362.2 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002707/0.1452, allocations: 1.954 MB / 364.1 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003078/0.1456, allocations: 51.89 kB / 364.2 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.317e-05/0.1456, allocations: 11.94 kB / 364.2 MB, free: 6.422 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 17 * 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.0001547/0.1458, allocations: 144.9 kB / 364.3 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.499e-05/0.1458, allocations: 23.72 kB / 364.4 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.836e-05/0.1459, allocations: 29.77 kB / 364.4 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.1459, allocations: 0 / 364.4 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.1459, allocations: 0 / 364.4 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.1459, allocations: 3.984 kB / 364.4 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002721/0.1462, allocations: 297.4 kB / 364.7 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.1462, allocations: 0 / 364.7 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.1463, allocations: 23.97 kB / 364.7 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002539/0.1466, allocations: 68.81 kB / 364.8 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.213e-05/0.1466, allocations: 11.92 kB / 364.8 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002549/0.1492, allocations: 1.77 MB / 366.6 MB, free: 3.863 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1492, allocations: 0 / 366.6 MB, free: 3.863 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.1503, allocations: 348.5 kB / 366.9 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.323e-05/0.1504, allocations: 108.8 kB / 367 MB, free: 3.379 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.576e-05/0.1504, allocations: 3.938 kB / 367 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002317/0.1506, allocations: 35.95 kB / 367 MB, free: 3.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.105e-05/0.1507, allocations: 15.98 kB / 367.1 MB, free: 3.324 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.463e-05/0.1508, allocations: 7.984 kB / 367.1 MB, free: 3.316 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000227/0.151, allocations: 197.9 kB / 367.3 MB, free: 3.125 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.151, allocations: 0 / 367.3 MB, free: 3.125 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006153/0.1516, allocations: 67.91 kB / 367.3 MB, free: 3.059 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.0002127/0.1518, allocations: 103.8 kB / 367.4 MB, free: 2.945 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001064/0.1529, allocations: 413.7 kB / 367.8 MB, free: 2.516 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1529, allocations: 0 / 367.8 MB, free: 2.516 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004944/0.1534, allocations: 235 kB / 368.1 MB, free: 2.273 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003818/0.1538, allocations: 52.47 kB / 368.1 MB, free: 2.223 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.1549, allocations: 447.5 kB / 368.6 MB, free: 1.758 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005035/0.1555, allocations: 0.7517 MB / 369.3 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.85e-05/0.1556, allocations: 26.28 kB / 369.3 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.748e-05/0.1556, allocations: 19.44 kB / 369.3 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of SimCode: time 9.92e-07/0.1556, allocations: 0 / 369.3 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of Templates: time 0.2459/0.4016, allocations: 3.815 MB / 373.2 MB, free: 24.82 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/SchmittTrigger/SchmittTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches