Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001016/0.001016, allocations: 96.66 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001226/0.001226, allocations: 207.3 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 227.7 MB / 247.5 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002181/0.0002182, allocations: 8 kB / 308.4 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09194/0.09218, allocations: 51.53 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.002921/0.09513, allocations: 2.45 MB / 362.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001601/0.09677, allocations: 0.7052 MB / 363.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002561/0.09705, allocations: 4 kB / 363.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001674/0.09723, allocations: 27.77 kB / 363.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002303/0.09747, allocations: 83.38 kB / 363.2 MB, free: 10 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002814/0.09776, allocations: 83.92 kB / 363.3 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003609/0.09813, allocations: 338.5 kB / 363.6 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001696/0.09831, allocations: 69.14 kB / 363.7 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001746/0.09849, allocations: 115.5 kB / 363.8 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001753/0.09867, allocations: 139.3 kB / 363.9 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.038e-05/0.09872, allocations: 12 kB / 363.9 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.865e-05/0.09878, allocations: 16 kB / 364 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.223e-05/0.09884, allocations: 51.77 kB / 364 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001429/0.09899, allocations: 156.9 kB / 364.2 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00022/0.09921, allocations: 231.6 kB / 364.4 MB, free: 8.809 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.09923, allocations: 0 / 364.4 MB, free: 8.809 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.09923, allocations: 0 / 364.4 MB, free: 8.809 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.084e-06/0.09924, allocations: 0 / 364.4 MB, free: 8.809 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.001118/0.1004, allocations: 0.6185 MB / 365 MB, free: 8.129 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.1004, allocations: 8.031 kB / 365 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.957e-05/0.1005, allocations: 28.66 kB / 365 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003133/0.1008, allocations: 275.6 kB / 365.3 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.154e-05/0.1008, allocations: 20.81 kB / 365.3 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.364e-05/0.1009, allocations: 16.38 kB / 365.3 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006388/0.1015, allocations: 298 kB / 365.6 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.1015, allocations: 0 / 365.6 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.653e-05/0.1016, allocations: 8 kB / 365.6 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.1016, allocations: 8 kB / 365.7 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007709/0.1024, allocations: 277.5 kB / 365.9 MB, free: 7.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001552/0.1039, allocations: 0.9676 MB / 366.9 MB, free: 6.117 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008567/0.1048, allocations: 278.5 kB / 367.2 MB, free: 5.836 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000348/0.1052, allocations: 120.8 kB / 367.3 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.103e-05/0.1052, allocations: 0 / 367.3 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000487/0.1057, allocations: 197.7 kB / 367.5 MB, free: 5.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.192e-06/0.1057, allocations: 0 / 367.5 MB, free: 5.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002392/0.1081, allocations: 0.7332 MB / 368.2 MB, free: 4.738 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.723e-05/0.1082, allocations: 106.8 kB / 368.3 MB, free: 4.609 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003043/0.1085, allocations: 274.6 kB / 368.6 MB, free: 4.336 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.536e-05/0.1085, allocations: 29.7 kB / 368.6 MB, free: 4.301 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.1087, allocations: 183.8 kB / 368.8 MB, free: 4.117 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.892e-05/0.1087, allocations: 43.39 kB / 368.8 MB, free: 4.074 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.034e-05/0.1087, allocations: 25.7 kB / 368.9 MB, free: 4.043 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.1089, allocations: 338.8 kB / 369.2 MB, free: 3.703 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003695/0.1092, allocations: 111.9 kB / 369.3 MB, free: 3.594 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003972/0.1096, allocations: 191.3 kB / 369.5 MB, free: 3.371 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007157/0.1104, allocations: 324.8 kB / 369.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1104, allocations: 4 kB / 369.8 MB, free: 3.016 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001255/0.1116, allocations: 475.7 kB / 370.3 MB, free: 2.535 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.464e-05/0.1117, allocations: 33.7 kB / 370.3 MB, free: 2.496 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.1117, allocations: 4 kB / 370.3 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003515/0.1121, allocations: 88.8 kB / 370.4 MB, free: 2.402 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002018/0.1123, allocations: 43.97 kB / 370.4 MB, free: 2.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002652/0.1149, allocations: 1.873 MB / 372.3 MB, free: 348 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003259/0.1153, allocations: 59.88 kB / 372.4 MB, free: 288 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.296e-05/0.1153, allocations: 12 kB / 372.4 MB, free: 276 kB / 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.0001462/0.1155, allocations: 134.4 kB / 372.5 MB, free: 132 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.872e-05/0.1155, allocations: 31.92 kB / 372.5 MB, free: 100 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.956e-05/0.1156, allocations: 25.88 kB / 372.6 MB, free: 80 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.1156, allocations: 7.938 kB / 372.6 MB, free: 72 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.1156, allocations: 3.938 kB / 372.6 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.1156, allocations: 3.984 kB / 372.6 MB, free: 64 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1839/0.2995, allocations: 288.9 kB / 372.9 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.2996, allocations: 0.8125 kB / 372.9 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002126/0.2998, allocations: 27.2 kB / 372.9 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003844/0.3002, allocations: 83.03 kB / 373 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.707e-05/0.3002, allocations: 3.875 kB / 373 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002363/0.3026, allocations: 1.763 MB / 374.7 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.3026, allocations: 0 / 374.7 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001244/0.3039, allocations: 399.7 kB / 375.1 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.919e-05/0.304, allocations: 113.1 kB / 375.2 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.564e-05/0.304, allocations: 6 kB / 375.2 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002735/0.3043, allocations: 38.48 kB / 375.3 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.526e-05/0.3044, allocations: 23.14 kB / 375.3 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.845e-05/0.3044, allocations: 7.359 kB / 375.3 MB, free: 17.81 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002293/0.3047, allocations: 192 kB / 375.5 MB, free: 17.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3047, allocations: 0 / 375.5 MB, free: 17.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004435/0.3051, allocations: 67.38 kB / 375.6 MB, free: 17.73 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.0001374/0.3053, allocations: 107.8 kB / 375.7 MB, free: 17.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001424/0.3067, allocations: 0.5113 MB / 376.2 MB, free: 17.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.3067, allocations: 1.219 kB / 376.2 MB, free: 17.47 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005229/0.3073, allocations: 248.3 kB / 376.4 MB, free: 17.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003881/0.3077, allocations: 47.39 kB / 376.5 MB, free: 17.36 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003303/0.311, allocations: 1.099 MB / 377.6 MB, free: 17.01 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002089/0.3112, allocations: 0.7481 MB / 378.3 MB, free: 16.31 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.229e-05/0.3113, allocations: 19.92 kB / 378.3 MB, free: 16.3 MB / 302.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3113, allocations: 0 / 378.3 MB, free: 16.3 MB / 302.1 MB Notification: Performance of Templates: time 0.00817/0.3195, allocations: 4.154 MB / 382.5 MB, free: 16.06 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches