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.001903/0.001902, allocations: 113 kB / 17.68 MB, free: 5.473 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.002425/0.002425, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.573/1.573, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 50.09 kB / 302.1 MB, free: 5.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1334, allocations: 49.44 MB / 351.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004432/0.1379, allocations: 2.749 MB / 354.3 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001204/0.1391, allocations: 0.6856 MB / 354.9 MB, free: 228 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.1392, allocations: 8 kB / 354.9 MB, free: 220 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001487/0.1394, allocations: 39.58 kB / 355 MB, free: 180 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001744/0.1396, allocations: 87.25 kB / 355.1 MB, free: 92 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002924/0.1399, allocations: 95.91 kB / 355.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003875/0.1403, allocations: 358.4 kB / 355.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002083/0.1405, allocations: 88.56 kB / 355.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000175/0.1407, allocations: 135.4 kB / 355.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001948/0.1409, allocations: 151.3 kB / 355.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.119e-05/0.1409, allocations: 28 kB / 355.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.905e-05/0.141, allocations: 32 kB / 355.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.69e-05/0.1411, allocations: 63.7 kB / 356 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001486/0.1412, allocations: 143.3 kB / 356.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003326/0.1416, allocations: 326.8 kB / 356.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1416, allocations: 0 / 356.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1416, allocations: 4 kB / 356.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.1416, allocations: 0 / 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.00118/0.1428, allocations: 0.6418 MB / 357.1 MB, free: 13.99 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.1428, allocations: 15.89 kB / 357.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.672e-05/0.1429, allocations: 32.5 kB / 357.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003987/0.1433, allocations: 279.6 kB / 357.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.59e-05/0.1433, allocations: 20.8 kB / 357.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.229e-05/0.1434, allocations: 20.38 kB / 357.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006424/0.144, allocations: 274.1 kB / 357.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.1441, allocations: 0 / 357.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.238e-05/0.1441, allocations: 15.98 kB / 357.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.1441, allocations: 7.938 kB / 357.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000687/0.1448, allocations: 241.6 kB / 358 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001792/0.1466, allocations: 0.9364 MB / 358.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007968/0.1474, allocations: 246.5 kB / 359.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003099/0.1477, allocations: 100.8 kB / 359.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.896e-05/0.1478, allocations: 4 kB / 359.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004915/0.1483, allocations: 184.7 kB / 359.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.603e-06/0.1483, allocations: 0 / 359.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002196/0.1505, allocations: 0.6551 MB / 360.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.936e-05/0.1506, allocations: 102.8 kB / 360.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002755/0.1508, allocations: 278.4 kB / 360.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.1509, allocations: 29.7 kB / 360.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.151, allocations: 179.8 kB / 360.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.135e-05/0.1511, allocations: 39.39 kB / 360.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.384e-05/0.1512, allocations: 57.61 kB / 360.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.1513, allocations: 334.8 kB / 361.1 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000315/0.1516, allocations: 96.14 kB / 361.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003689/0.152, allocations: 182.2 kB / 361.4 MB, free: 9.441 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006233/0.1526, allocations: 286.1 kB / 361.7 MB, free: 9.125 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1526, allocations: 0 / 361.7 MB, free: 9.125 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001094/0.1537, allocations: 450.4 kB / 362.1 MB, free: 8.672 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.002e-05/0.1538, allocations: 33.7 kB / 362.1 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.1538, allocations: 0 / 362.1 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00038/0.1542, allocations: 84.86 kB / 362.2 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001777/0.1544, allocations: 39.91 kB / 362.3 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002942/0.1573, allocations: 2.009 MB / 364.3 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002969/0.1576, allocations: 51.86 kB / 364.3 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.436e-05/0.1577, allocations: 8 kB / 364.3 MB, free: 6.297 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.0001557/0.1578, allocations: 137.8 kB / 364.5 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.676e-05/0.1579, allocations: 23.72 kB / 364.5 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.101e-05/0.1579, allocations: 33.77 kB / 364.5 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1579, allocations: 0 / 364.5 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.205e-06/0.158, allocations: 0 / 364.5 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.158, allocations: 4 kB / 364.5 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000277/0.1582, allocations: 293.3 kB / 364.8 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.1583, allocations: 3.984 kB / 364.8 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001338/0.1584, allocations: 19.92 kB / 364.8 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002499/0.1587, allocations: 80.8 kB / 364.9 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.1587, allocations: 3.938 kB / 364.9 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002497/0.1612, allocations: 1.927 MB / 366.8 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.1612, allocations: 3.938 kB / 366.8 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.1622, allocations: 357.4 kB / 367.2 MB, free: 3.207 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.013e-05/0.1623, allocations: 100.8 kB / 367.3 MB, free: 3.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.428e-05/0.1624, allocations: 4 kB / 367.3 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002361/0.1626, allocations: 35.95 kB / 367.3 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.484e-05/0.1627, allocations: 23.97 kB / 367.4 MB, free: 3.027 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.157e-05/0.1628, allocations: 0 / 367.4 MB, free: 3.027 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002128/0.163, allocations: 194 kB / 367.5 MB, free: 2.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.163, allocations: 0 / 367.5 MB, free: 2.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000385/0.1634, allocations: 67.94 kB / 367.6 MB, free: 2.773 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.0002184/0.1636, allocations: 111.2 kB / 367.7 MB, free: 2.652 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001355/0.165, allocations: 496.6 kB / 368.2 MB, free: 2.145 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.165, allocations: 0 / 368.2 MB, free: 2.145 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004862/0.1655, allocations: 235 kB / 368.4 MB, free: 1.902 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003585/0.1658, allocations: 47.55 kB / 368.5 MB, free: 1.859 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0029/0.1687, allocations: 0.8826 MB / 369.4 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003846/0.1691, allocations: 0.7555 MB / 370.1 MB, free: 164 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.773e-05/0.1693, allocations: 26.33 kB / 370.1 MB, free: 140 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.164e-05/0.1693, allocations: 23.42 kB / 370.2 MB, free: 116 kB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1693, allocations: 4 kB / 370.2 MB, free: 112 kB / 302.1 MB Notification: Performance of Templates: time 0.2556/0.425, allocations: 3.772 MB / 373.9 MB, free: 25 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 -s cvode -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