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.001381/0.001381, allocations: 113.3 kB / 16.63 MB, free: 6.812 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.001545/0.001545, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.526/1.526, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009326/0.0009326, allocations: 42.44 kB / 300.1 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1011, allocations: 49.45 MB / 349.6 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003879/0.1051, allocations: 2.795 MB / 352.4 MB, free: 1.934 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001123/0.1062, allocations: 0.674 MB / 353.1 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001349/0.1064, allocations: 4 kB / 353.1 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001565/0.1066, allocations: 31.7 kB / 353.1 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001773/0.1068, allocations: 75.45 kB / 353.2 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002745/0.107, allocations: 83.84 kB / 353.2 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003636/0.1074, allocations: 354.6 kB / 353.6 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000177/0.1076, allocations: 92.55 kB / 353.7 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001373/0.1077, allocations: 127.5 kB / 353.8 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001576/0.1079, allocations: 159.3 kB / 354 MB, free: 348 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.806e-05/0.108, allocations: 32 kB / 354 MB, free: 316 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.448e-05/0.108, allocations: 28 kB / 354 MB, free: 288 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.722e-05/0.1081, allocations: 59.77 kB / 354.1 MB, free: 228 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001237/0.1082, allocations: 147.2 kB / 354.2 MB, free: 80 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003054/0.1085, allocations: 315.1 kB / 354.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.1085, allocations: 4 kB / 354.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1085, allocations: 4 kB / 354.5 MB, free: 15.76 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.1086, allocations: 0 / 354.5 MB, free: 15.76 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.001197/0.1098, allocations: 0.6418 MB / 355.2 MB, free: 15.06 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.1098, allocations: 23.75 kB / 355.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.003e-05/0.1099, allocations: 32.56 kB / 355.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000286/0.1102, allocations: 267.7 kB / 355.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.06e-05/0.1102, allocations: 20.8 kB / 355.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.841e-05/0.1102, allocations: 24.38 kB / 355.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006662/0.1109, allocations: 278 kB / 355.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.1109, allocations: 0 / 355.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.771e-05/0.111, allocations: 12 kB / 355.8 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.111, allocations: 8 kB / 355.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007217/0.1117, allocations: 245.6 kB / 356.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001648/0.1134, allocations: 0.9442 MB / 357 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008782/0.1143, allocations: 238.5 kB / 357.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003157/0.1146, allocations: 104.8 kB / 357.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.921e-05/0.1146, allocations: 4 kB / 357.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005192/0.1152, allocations: 182.6 kB / 357.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.423e-06/0.1152, allocations: 0 / 357.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002201/0.1174, allocations: 0.6582 MB / 358.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.54e-05/0.1175, allocations: 106.8 kB / 358.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002791/0.1178, allocations: 274.5 kB / 358.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.056e-05/0.1178, allocations: 29.7 kB / 358.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.1179, allocations: 175.9 kB / 358.8 MB, free: 11.26 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.991e-05/0.118, allocations: 43.39 kB / 358.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.61e-05/0.1181, allocations: 45.61 kB / 358.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.1183, allocations: 343 kB / 359.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003322/0.1186, allocations: 99.92 kB / 359.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003963/0.119, allocations: 182.2 kB / 359.5 MB, free: 10.51 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006558/0.1197, allocations: 286 kB / 359.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.1197, allocations: 4 kB / 359.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001178/0.1209, allocations: 446.8 kB / 360.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.079e-05/0.1209, allocations: 29.7 kB / 360.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.1209, allocations: 4 kB / 360.2 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003816/0.1213, allocations: 80.86 kB / 360.3 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001978/0.1215, allocations: 39.97 kB / 360.3 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002899/0.1244, allocations: 2.013 MB / 362.3 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003682/0.1248, allocations: 47.88 kB / 362.4 MB, free: 7.375 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.832e-05/0.1249, allocations: 15.98 kB / 362.4 MB, free: 7.359 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.0001749/0.1251, allocations: 129.8 kB / 362.5 MB, free: 7.223 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.931e-05/0.1251, allocations: 27.66 kB / 362.6 MB, free: 7.195 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.866e-05/0.1252, allocations: 29.77 kB / 362.6 MB, free: 7.164 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.1252, allocations: 4 kB / 362.6 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.305e-06/0.1252, allocations: 0 / 362.6 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.1252, allocations: 0 / 362.6 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002789/0.1255, allocations: 301.3 kB / 362.9 MB, free: 6.816 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1255, allocations: 4 kB / 362.9 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.1256, allocations: 23.97 kB / 362.9 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002977/0.1259, allocations: 72.8 kB / 363 MB, free: 6.715 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.126, allocations: 11.94 kB / 363 MB, free: 6.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002395/0.1284, allocations: 1.916 MB / 364.9 MB, free: 4.652 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.1284, allocations: 3.938 kB / 364.9 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.1295, allocations: 361.5 kB / 365.3 MB, free: 4.273 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.447e-05/0.1296, allocations: 104.8 kB / 365.4 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.26e-05/0.1296, allocations: 8 kB / 365.4 MB, free: 4.145 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002566/0.1299, allocations: 27.95 kB / 365.4 MB, free: 4.117 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.128e-05/0.13, allocations: 19.98 kB / 365.4 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.398e-05/0.13, allocations: 7.984 kB / 365.4 MB, free: 4.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001956/0.1302, allocations: 194 kB / 365.6 MB, free: 3.902 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1302, allocations: 0 / 365.6 MB, free: 3.902 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004332/0.1306, allocations: 71.94 kB / 365.7 MB, free: 3.832 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.0001522/0.1308, allocations: 119.1 kB / 365.8 MB, free: 3.703 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001281/0.1321, allocations: 481.8 kB / 366.3 MB, free: 3.207 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1321, allocations: 0 / 366.3 MB, free: 3.207 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004708/0.1326, allocations: 235 kB / 366.5 MB, free: 2.965 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003272/0.1329, allocations: 44.42 kB / 366.6 MB, free: 2.922 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003011/0.1359, allocations: 0.9762 MB / 367.5 MB, free: 1.914 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003321/0.1363, allocations: 0.7555 MB / 368.3 MB, free: 1.133 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001188/0.1364, allocations: 22.3 kB / 368.3 MB, free: 1.113 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.427e-05/0.1365, allocations: 27.36 kB / 368.3 MB, free: 1.086 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1365, allocations: 0 / 368.3 MB, free: 1.086 MB / 302.1 MB Notification: Performance of Templates: time 0.1524/0.2889, allocations: 3.675 MB / 372 MB, free: 25.28 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