Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.SchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009377/0.0009377, allocations: 96.17 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001062/0.001062, allocations: 202.6 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.7 MB / 247.5 MB, free: 11.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002136/0.0002136, allocations: 8 kB / 308.4 MB, free: 0.7773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08995/0.09018, allocations: 51.54 MB / 359.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.002918/0.09314, allocations: 2.447 MB / 362.4 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001307/0.09447, allocations: 0.7052 MB / 363.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002167/0.09471, allocations: 4 kB / 363.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001422/0.09487, allocations: 27.77 kB / 363.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002435/0.09512, allocations: 75.39 kB / 363.2 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000284/0.09542, allocations: 87.91 kB / 363.3 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003846/0.09581, allocations: 338.5 kB / 363.6 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001811/0.096, allocations: 73.12 kB / 363.7 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001757/0.09619, allocations: 111.5 kB / 363.8 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001994/0.09639, allocations: 139.2 kB / 363.9 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.542e-05/0.09645, allocations: 16 kB / 363.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.605e-05/0.0965, allocations: 16 kB / 364 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.328e-05/0.09656, allocations: 47.77 kB / 364 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001473/0.09672, allocations: 164.9 kB / 364.2 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002177/0.09694, allocations: 231.6 kB / 364.4 MB, free: 8.758 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.09695, allocations: 0 / 364.4 MB, free: 8.758 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.09696, allocations: 0 / 364.4 MB, free: 8.758 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.714e-06/0.09697, allocations: 0 / 364.4 MB, free: 8.758 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.00115/0.09813, allocations: 0.6185 MB / 365 MB, free: 8.078 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.09817, allocations: 8.031 kB / 365 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.011e-05/0.09826, allocations: 28.66 kB / 365 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003295/0.09859, allocations: 275.6 kB / 365.3 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.09862, allocations: 16.81 kB / 365.3 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.482e-05/0.09867, allocations: 16.38 kB / 365.3 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006562/0.09933, allocations: 298 kB / 365.6 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.09935, allocations: 0 / 365.6 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.803e-05/0.09939, allocations: 12 kB / 365.6 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.0994, allocations: 4 kB / 365.6 MB, free: 7.383 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007746/0.1002, allocations: 277.6 kB / 365.9 MB, free: 7.113 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001587/0.1018, allocations: 0.9754 MB / 366.9 MB, free: 6.062 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008577/0.1026, allocations: 278.5 kB / 367.2 MB, free: 5.781 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000341/0.103, allocations: 116.8 kB / 367.3 MB, free: 5.664 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.54e-05/0.103, allocations: 4 kB / 367.3 MB, free: 5.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004865/0.1035, allocations: 197.5 kB / 367.5 MB, free: 5.449 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.713e-06/0.1035, allocations: 0 / 367.5 MB, free: 5.449 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002405/0.106, allocations: 0.7294 MB / 368.2 MB, free: 4.691 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.172e-05/0.106, allocations: 106.8 kB / 368.3 MB, free: 4.562 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002792/0.1063, allocations: 270.5 kB / 368.6 MB, free: 4.293 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.823e-05/0.1064, allocations: 29.7 kB / 368.6 MB, free: 4.258 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.1065, allocations: 175.9 kB / 368.8 MB, free: 4.082 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.804e-05/0.1065, allocations: 43.39 kB / 368.8 MB, free: 4.039 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.756e-05/0.1066, allocations: 25.7 kB / 368.8 MB, free: 4.008 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.1067, allocations: 338.8 kB / 369.2 MB, free: 3.668 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003628/0.1071, allocations: 111.9 kB / 369.3 MB, free: 3.559 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003954/0.1075, allocations: 183.8 kB / 369.5 MB, free: 3.352 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007276/0.1082, allocations: 300.4 kB / 369.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1083, allocations: 0 / 369.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001267/0.1095, allocations: 471.7 kB / 370.2 MB, free: 2.551 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.621e-05/0.1096, allocations: 32.2 kB / 370.2 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.1096, allocations: 7.984 kB / 370.3 MB, free: 2.508 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003638/0.11, allocations: 76.78 kB / 370.3 MB, free: 2.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002027/0.1102, allocations: 55.89 kB / 370.4 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002487/0.1127, allocations: 1.803 MB / 372.2 MB, free: 436 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003353/0.113, allocations: 59.86 kB / 372.2 MB, free: 376 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.178e-05/0.1131, allocations: 8.125 kB / 372.3 MB, free: 368 kB / 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.0001492/0.1132, allocations: 137.7 kB / 372.4 MB, free: 220 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.99e-05/0.1133, allocations: 27.72 kB / 372.4 MB, free: 192 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.893e-05/0.1133, allocations: 25.83 kB / 372.4 MB, free: 172 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.1133, allocations: 0 / 372.4 MB, free: 172 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.1133, allocations: 8.156 kB / 372.4 MB, free: 164 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.1134, allocations: 7.984 kB / 372.5 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1677/0.2811, allocations: 287.2 kB / 372.7 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.2811, allocations: 0 / 372.7 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001992/0.2813, allocations: 27.75 kB / 372.8 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003655/0.2817, allocations: 83.94 kB / 372.8 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.655e-05/0.2817, allocations: 3.766 kB / 372.8 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002108/0.2838, allocations: 1.673 MB / 374.5 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2839, allocations: 0 / 374.5 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00118/0.2851, allocations: 398.2 kB / 374.9 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.433e-05/0.2851, allocations: 102 kB / 375 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.556e-05/0.2852, allocations: 6.453 kB / 375 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002806/0.2855, allocations: 46 kB / 375.1 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.339e-05/0.2856, allocations: 21.72 kB / 375.1 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.2856, allocations: 6.703 kB / 375.1 MB, free: 17.9 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002012/0.2858, allocations: 190.1 kB / 375.3 MB, free: 17.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2858, allocations: 0 / 375.3 MB, free: 17.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004182/0.2863, allocations: 69.2 kB / 375.3 MB, free: 17.82 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.0001378/0.2864, allocations: 99.38 kB / 375.4 MB, free: 17.74 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.2875, allocations: 438.8 kB / 375.9 MB, free: 17.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2875, allocations: 3.75 kB / 375.9 MB, free: 17.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004879/0.288, allocations: 247.5 kB / 376.1 MB, free: 17.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000364/0.2884, allocations: 37.97 kB / 376.2 MB, free: 17.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001124/0.2895, allocations: 0.5731 MB / 376.7 MB, free: 17.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002548/0.2898, allocations: 0.7472 MB / 377.5 MB, free: 16.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.628e-05/0.2898, allocations: 19.19 kB / 377.5 MB, free: 16.42 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2898, allocations: 0 / 377.5 MB, free: 16.42 MB / 302.1 MB Notification: Performance of Templates: time 0.009132/0.299, allocations: 4.121 MB / 381.6 MB, free: 16.17 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches