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.001138/0.001138, allocations: 103.8 kB / 17.59 MB, free: 5.43 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.001177/0.001177, allocations: 191.6 kB / 18.52 MB, free: 4.504 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.364/1.364, allocations: 222.9 MB / 242.2 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001069/0.001069, allocations: 42.81 kB / 301.3 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09178/0.09288, allocations: 49.45 MB / 350.7 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004233/0.09715, allocations: 2.753 MB / 353.5 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001321/0.09851, allocations: 0.6778 MB / 354.2 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002321/0.09876, allocations: 4 kB / 354.2 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000181/0.09896, allocations: 43.56 kB / 354.2 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002747/0.09928, allocations: 87.25 kB / 354.3 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002974/0.09958, allocations: 95.81 kB / 354.4 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003919/0.09999, allocations: 358.6 kB / 354.8 MB, free: 400 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001934/0.1002, allocations: 88.55 kB / 354.8 MB, free: 308 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001942/0.1004, allocations: 135.4 kB / 355 MB, free: 172 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000199/0.1006, allocations: 147.4 kB / 355.1 MB, free: 24 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.155e-05/0.1007, allocations: 31.98 kB / 355.1 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.95e-05/0.1008, allocations: 32 kB / 355.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.026e-05/0.1008, allocations: 55.78 kB / 355.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001527/0.101, allocations: 147.2 kB / 355.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003107/0.1013, allocations: 323.1 kB / 355.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.1013, allocations: 0 / 355.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1013, allocations: 0 / 355.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.1013, allocations: 0 / 355.7 MB, free: 15.45 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.001232/0.1026, allocations: 0.6379 MB / 356.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.1026, allocations: 12.03 kB / 356.3 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.862e-05/0.1027, allocations: 32.5 kB / 356.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003214/0.103, allocations: 283.6 kB / 356.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.891e-05/0.1031, allocations: 12.81 kB / 356.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.356e-05/0.1031, allocations: 20.38 kB / 356.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006614/0.1038, allocations: 282.1 kB / 357 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.1038, allocations: 0 / 357 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.614e-05/0.1038, allocations: 4 kB / 357 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.1038, allocations: 4 kB / 357 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007507/0.1046, allocations: 253.5 kB / 357.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001599/0.1062, allocations: 0.9442 MB / 358.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008423/0.1071, allocations: 242.5 kB / 358.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003512/0.1074, allocations: 108.8 kB / 358.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.089e-05/0.1074, allocations: 0 / 358.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005257/0.108, allocations: 181.8 kB / 358.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.563e-06/0.108, allocations: 0 / 358.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002383/0.1104, allocations: 0.6586 MB / 359.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.606e-05/0.1105, allocations: 106.8 kB / 359.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002809/0.1108, allocations: 266.5 kB / 359.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.751e-05/0.1108, allocations: 29.7 kB / 359.7 MB, free: 11.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.1109, allocations: 168 kB / 359.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.358e-05/0.111, allocations: 59.22 kB / 359.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.886e-05/0.1111, allocations: 41.7 kB / 360 MB, free: 10.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.1112, allocations: 334.8 kB / 360.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003574/0.1116, allocations: 104.1 kB / 360.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004172/0.112, allocations: 176.4 kB / 360.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006934/0.1127, allocations: 264.3 kB / 360.8 MB, free: 9.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.1128, allocations: 4 kB / 360.9 MB, free: 9.926 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001231/0.114, allocations: 427.6 kB / 361.3 MB, free: 9.492 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.364e-05/0.114, allocations: 33.77 kB / 361.3 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.1141, allocations: 4 kB / 361.3 MB, free: 9.449 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003732/0.1144, allocations: 76.8 kB / 361.4 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001983/0.1146, allocations: 43.91 kB / 361.4 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00264/0.1173, allocations: 1.947 MB / 363.4 MB, free: 7.238 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003475/0.1177, allocations: 51.86 kB / 363.4 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.486e-05/0.1177, allocations: 12 kB / 363.4 MB, free: 7.176 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.0001497/0.1178, allocations: 133.8 kB / 363.6 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.524e-05/0.1179, allocations: 23.72 kB / 363.6 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.476e-05/0.118, allocations: 29.77 kB / 363.6 MB, free: 6.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.118, allocations: 4.125 kB / 363.6 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.118, allocations: 4 kB / 363.6 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/0.118, allocations: 0 / 363.6 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003357/0.1183, allocations: 301.4 kB / 363.9 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.1184, allocations: 0 / 363.9 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001878/0.1186, allocations: 19.97 kB / 363.9 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003795/0.1189, allocations: 76.81 kB / 364 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.451e-05/0.119, allocations: 7.969 kB / 364 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002337/0.1213, allocations: 1.758 MB / 365.8 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.1214, allocations: 4 kB / 365.8 MB, free: 4.625 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001092/0.1224, allocations: 357.5 kB / 366.1 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.053e-05/0.1226, allocations: 104.8 kB / 366.2 MB, free: 4.133 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.616e-05/0.1226, allocations: 7.938 kB / 366.2 MB, free: 4.125 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002595/0.1229, allocations: 31.95 kB / 366.3 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.892e-05/0.123, allocations: 23.98 kB / 366.3 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.589e-05/0.123, allocations: 7.984 kB / 366.3 MB, free: 4.062 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001872/0.1232, allocations: 186 kB / 366.5 MB, free: 3.883 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1232, allocations: 0 / 366.5 MB, free: 3.883 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004077/0.1236, allocations: 71.91 kB / 366.6 MB, free: 3.812 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.0001568/0.1238, allocations: 103.7 kB / 366.7 MB, free: 3.699 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001035/0.1248, allocations: 425.6 kB / 367.1 MB, free: 3.258 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.1248, allocations: 448 / 367.1 MB, free: 3.258 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004752/0.1253, allocations: 230.5 kB / 367.3 MB, free: 3.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003287/0.1257, allocations: 39.3 kB / 367.3 MB, free: 2.984 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.1267, allocations: 493.1 kB / 367.8 MB, free: 2.469 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003016/0.127, allocations: 0.7478 MB / 368.6 MB, free: 1.691 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.059e-05/0.1271, allocations: 19.44 kB / 368.6 MB, free: 1.672 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1271, allocations: 0 / 368.6 MB, free: 1.672 MB / 302.1 MB Notification: Performance of Templates: time 0.1899/0.317, allocations: 4.141 MB / 372.7 MB, free: 24.43 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 -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