Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001574/0.001574, allocations: 197.7 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 226.6 MB / 244.3 MB, free: 6.574 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007575/0.0007575, allocations: 99.31 kB / 296.4 MB, free: 6.789 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002122/0.0002121, allocations: 8 kB / 356.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1907/0.1909, allocations: 51.29 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.001946/0.1929, allocations: 2.353 MB / 409.9 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007985/0.1937, allocations: 0.6788 MB / 410.5 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.1939, allocations: 7.938 kB / 410.5 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001001/0.194, allocations: 31.77 kB / 410.6 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001254/0.1941, allocations: 69.98 kB / 410.6 MB, free: 24.67 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001906/0.1943, allocations: 63.86 kB / 410.7 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002061/0.1945, allocations: 322.6 kB / 411 MB, free: 24.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.1947, allocations: 61.56 kB / 411.1 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001044/0.1948, allocations: 107.6 kB / 411.2 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001235/0.1949, allocations: 141.2 kB / 411.3 MB, free: 23.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.666e-05/0.195, allocations: 16 kB / 411.3 MB, free: 23.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.933e-05/0.195, allocations: 16 kB / 411.4 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.35e-05/0.195, allocations: 47.77 kB / 411.4 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.183e-05/0.1951, allocations: 69.52 kB / 411.5 MB, free: 23.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001613/0.1953, allocations: 244.8 kB / 411.7 MB, free: 23.6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1953, allocations: 3.5 kB / 411.7 MB, free: 23.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1953, allocations: 0 / 411.7 MB, free: 23.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.1953, allocations: 0 / 411.7 MB, free: 23.6 MB / 298.7 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.0009828/0.1963, allocations: 0.6067 MB / 412.3 MB, free: 22.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.083e-05/0.1963, allocations: 12.03 kB / 412.3 MB, free: 22.92 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.866e-05/0.1964, allocations: 31.62 kB / 412.4 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002285/0.1966, allocations: 274.4 kB / 412.6 MB, free: 22.58 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/0.1966, allocations: 16.39 kB / 412.6 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.906e-05/0.1967, allocations: 20 kB / 412.7 MB, free: 22.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005577/0.1972, allocations: 285.8 kB / 412.9 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.1973, allocations: 0 / 412.9 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.404e-05/0.1973, allocations: 7.984 kB / 412.9 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.1973, allocations: 8 kB / 413 MB, free: 22.24 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006836/0.198, allocations: 273.5 kB / 413.2 MB, free: 21.97 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001239/0.1992, allocations: 0.9793 MB / 414.2 MB, free: 20.92 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007661/0.2, allocations: 278.5 kB / 414.5 MB, free: 20.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002993/0.2003, allocations: 112.8 kB / 414.6 MB, free: 20.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.058e-05/0.2004, allocations: 8 kB / 414.6 MB, free: 20.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004152/0.2008, allocations: 189.8 kB / 414.8 MB, free: 20.31 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.453e-06/0.2008, allocations: 0 / 414.8 MB, free: 20.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.002079/0.2029, allocations: 0.7326 MB / 415.5 MB, free: 19.55 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.263e-05/0.2029, allocations: 106.8 kB / 415.6 MB, free: 19.42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001864/0.2031, allocations: 262.6 kB / 415.9 MB, free: 19.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.717e-05/0.2031, allocations: 25.7 kB / 415.9 MB, free: 19.13 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.631e-05/0.2032, allocations: 183.8 kB / 416.1 MB, free: 18.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.279e-05/0.2032, allocations: 35.45 kB / 416.1 MB, free: 18.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.108e-05/0.2033, allocations: 8 kB / 416.1 MB, free: 18.9 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.803e-05/0.2033, allocations: 342.8 kB / 416.5 MB, free: 18.56 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003035/0.2036, allocations: 107.9 kB / 416.6 MB, free: 18.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003281/0.204, allocations: 190 kB / 416.7 MB, free: 18.24 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003151/0.2043, allocations: 139.9 kB / 416.9 MB, free: 18.1 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2043, allocations: 0 / 416.9 MB, free: 18.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001022/0.2053, allocations: 472.5 kB / 417.3 MB, free: 17.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.7e-05/0.2054, allocations: 33.7 kB / 417.4 MB, free: 17.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.2054, allocations: 3.953 kB / 417.4 MB, free: 17.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003241/0.2057, allocations: 88.86 kB / 417.5 MB, free: 17.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001787/0.2059, allocations: 39.97 kB / 417.5 MB, free: 17.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001879/0.2078, allocations: 1.807 MB / 419.3 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003148/0.2081, allocations: 51.92 kB / 419.4 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.82e-05/0.2081, allocations: 15.94 kB / 419.4 MB, free: 15.43 MB / 298.7 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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001075/0.2083, allocations: 145.8 kB / 419.5 MB, free: 15.28 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.807e-05/0.2083, allocations: 19.72 kB / 419.5 MB, free: 15.26 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.594e-05/0.2083, allocations: 29.83 kB / 419.6 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2083, allocations: 0 / 419.6 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.2083, allocations: 0 / 419.6 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.2083, allocations: 224 / 419.6 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001758/0.2085, allocations: 293.4 kB / 419.9 MB, free: 14.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.2085, allocations: 11.88 kB / 419.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001328/0.2087, allocations: 31.98 kB / 419.9 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002349/0.2089, allocations: 80.8 kB / 420 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/0.2089, allocations: 4 kB / 420 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0016/0.2105, allocations: 1.663 MB / 421.6 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2106, allocations: 4.062 kB / 421.6 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008916/0.2115, allocations: 401.5 kB / 422 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.856e-05/0.2115, allocations: 92.83 kB / 422.1 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.008e-05/0.2115, allocations: 12 kB / 422.1 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/0.2118, allocations: 39.95 kB / 422.2 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.018e-05/0.2118, allocations: 23.97 kB / 422.2 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.2119, allocations: 4 kB / 422.2 MB, free: 12.37 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001258/0.212, allocations: 197.9 kB / 422.4 MB, free: 12.18 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.212, allocations: 0 / 422.4 MB, free: 12.18 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002968/0.2123, allocations: 71.84 kB / 422.5 MB, free: 12.11 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001076/0.2124, allocations: 99.25 kB / 422.6 MB, free: 12 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008087/0.2132, allocations: 441.2 kB / 423 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2133, allocations: 0 / 423 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003861/0.2137, allocations: 242.9 kB / 423.2 MB, free: 11.3 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002864/0.214, allocations: 40.53 kB / 423.3 MB, free: 11.26 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007366/0.2147, allocations: 0.556 MB / 423.8 MB, free: 10.67 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001225/0.2148, allocations: 0.7482 MB / 424.6 MB, free: 9.898 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.904e-05/0.2149, allocations: 15.44 kB / 424.6 MB, free: 9.883 MB / 298.7 MB Notification: Performance of SimCode: time 3.01e-07/0.2149, allocations: 0 / 424.6 MB, free: 9.883 MB / 298.7 MB Notification: Performance of Templates: time 0.004251/0.2192, allocations: 4.128 MB / 428.7 MB, free: 5.77 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/SchmittTrigger/SchmittTrigger.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches