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.001209/0.001209, allocations: 91.81 kB / 16.65 MB, free: 6.59 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.001296/0.001297, allocations: 181.9 kB / 17.56 MB, free: 6.203 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.617/1.617, allocations: 223.3 MB / 241.6 MB, free: 200 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002943/0.0002944, allocations: 11.94 kB / 301.4 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1274, allocations: 50.41 MB / 351.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003781/0.1313, allocations: 2.436 MB / 354.3 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001303/0.1326, allocations: 0.674 MB / 355 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001211/0.1328, allocations: 7.938 kB / 355 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.1329, allocations: 27.75 kB / 355 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001868/0.1331, allocations: 79.39 kB / 355.1 MB, free: 484 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002664/0.1334, allocations: 75.92 kB / 355.1 MB, free: 408 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003351/0.1338, allocations: 346.5 kB / 355.5 MB, free: 60 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000205/0.134, allocations: 73.08 kB / 355.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001553/0.1341, allocations: 115.4 kB / 355.7 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001747/0.1343, allocations: 135.4 kB / 355.8 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.067e-05/0.1344, allocations: 12 kB / 355.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.677e-05/0.1344, allocations: 19.94 kB / 355.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.456e-05/0.1345, allocations: 47.77 kB / 355.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001368/0.1346, allocations: 149 kB / 356 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003316/0.135, allocations: 311 kB / 356.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.135, allocations: 7.938 kB / 356.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.135, allocations: 0 / 356.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.135, allocations: 0 / 356.3 MB, free: 15.2 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.00128/0.1363, allocations: 0.603 MB / 356.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.1363, allocations: 8.031 kB / 356.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.502e-05/0.1364, allocations: 32.56 kB / 357 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003493/0.1368, allocations: 287.6 kB / 357.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.488e-05/0.1368, allocations: 16.81 kB / 357.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.657e-05/0.1368, allocations: 20.38 kB / 357.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006524/0.1375, allocations: 294.1 kB / 357.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.1375, allocations: 3.938 kB / 357.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.678e-05/0.1376, allocations: 7.984 kB / 357.6 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.1376, allocations: 8 kB / 357.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007744/0.1384, allocations: 273.6 kB / 357.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001653/0.14, allocations: 0.9637 MB / 358.8 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008943/0.1409, allocations: 282.5 kB / 359.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003453/0.1413, allocations: 112.8 kB / 359.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.494e-05/0.1413, allocations: 4 kB / 359.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005361/0.1419, allocations: 195.8 kB / 359.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 3.767e-06/0.1419, allocations: 0 / 359.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002501/0.1444, allocations: 0.7255 MB / 360.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.491e-05/0.1445, allocations: 114.7 kB / 360.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003074/0.1448, allocations: 274.5 kB / 360.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.1448, allocations: 29.7 kB / 360.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.145, allocations: 171.9 kB / 360.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.309e-05/0.145, allocations: 47.3 kB / 360.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.001e-05/0.1451, allocations: 29.72 kB / 360.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1452, allocations: 334.8 kB / 361.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003672/0.1456, allocations: 119.9 kB / 361.2 MB, free: 10 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004253/0.146, allocations: 198.4 kB / 361.4 MB, free: 9.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007338/0.1468, allocations: 316.5 kB / 361.7 MB, free: 9.426 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.1468, allocations: 0 / 361.7 MB, free: 9.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001269/0.1481, allocations: 483.6 kB / 362.2 MB, free: 8.938 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.403e-05/0.1481, allocations: 37.69 kB / 362.2 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.1481, allocations: 4 kB / 362.2 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003864/0.1485, allocations: 80.86 kB / 362.3 MB, free: 8.809 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002349/0.1488, allocations: 51.91 kB / 362.4 MB, free: 8.758 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002728/0.1515, allocations: 1.857 MB / 364.2 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000356/0.1519, allocations: 63.81 kB / 364.3 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.398e-05/0.1519, allocations: 11.98 kB / 364.3 MB, free: 6.688 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.0001715/0.1521, allocations: 141.8 kB / 364.4 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.112e-05/0.1521, allocations: 23.72 kB / 364.5 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.607e-05/0.1522, allocations: 21.83 kB / 364.5 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1522, allocations: 4 kB / 364.5 MB, free: 6.488 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1522, allocations: 3.938 kB / 364.5 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.1522, allocations: 4 kB / 364.5 MB, free: 6.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002999/0.1525, allocations: 289.4 kB / 364.8 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.1525, allocations: 0 / 364.8 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/0.1527, allocations: 31.91 kB / 364.8 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000278/0.153, allocations: 84.8 kB / 364.9 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.153, allocations: 4 kB / 364.9 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002436/0.1554, allocations: 1.768 MB / 366.7 MB, free: 4.129 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1555, allocations: 0 / 366.7 MB, free: 4.129 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.1566, allocations: 402.8 kB / 367.1 MB, free: 3.715 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.74e-05/0.1567, allocations: 104.8 kB / 367.2 MB, free: 3.594 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.437e-05/0.1568, allocations: 4 kB / 367.2 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002603/0.157, allocations: 47.91 kB / 367.2 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.377e-05/0.1571, allocations: 19.97 kB / 367.2 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.1571, allocations: 4 kB / 367.2 MB, free: 3.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002143/0.1574, allocations: 190 kB / 367.4 MB, free: 3.336 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1574, allocations: 0 / 367.4 MB, free: 3.336 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00041/0.1578, allocations: 75.84 kB / 367.5 MB, free: 3.262 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.0001653/0.158, allocations: 103.2 kB / 367.6 MB, free: 3.148 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001304/0.1593, allocations: 0.5173 MB / 368.1 MB, free: 2.605 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1593, allocations: 0 / 368.1 MB, free: 2.605 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004973/0.1598, allocations: 250.5 kB / 368.4 MB, free: 2.352 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003384/0.1601, allocations: 52.5 kB / 368.4 MB, free: 2.301 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003164/0.1633, allocations: 1.067 MB / 369.5 MB, free: 1.207 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003641/0.1637, allocations: 0.7482 MB / 370.2 MB, free: 444 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001222/0.1638, allocations: 22.3 kB / 370.2 MB, free: 420 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6e-05/0.1639, allocations: 15.44 kB / 370.3 MB, free: 404 kB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1639, allocations: 4 kB / 370.3 MB, free: 400 kB / 302.1 MB Notification: Performance of Templates: time 0.2319/0.3958, allocations: 3.433 MB / 373.7 MB, free: 24.21 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/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