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.001482/0.001482, allocations: 191.8 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 226.6 MB / 244.7 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007497/0.0007497, allocations: 102.7 kB / 296.8 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00022/0.0002201, allocations: 12 kB / 356.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1944/0.1946, allocations: 51.3 MB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.001975/0.1966, allocations: 2.353 MB / 410.4 MB, free: 25.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007771/0.1974, allocations: 0.6754 MB / 411.1 MB, free: 24.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.1976, allocations: 3.938 kB / 411.1 MB, free: 24.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.477e-05/0.1977, allocations: 27.77 kB / 411.1 MB, free: 24.65 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001322/0.1978, allocations: 81.25 kB / 411.2 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001891/0.198, allocations: 59.92 kB / 411.3 MB, free: 24.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002296/0.1982, allocations: 319.5 kB / 411.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001422/0.1984, allocations: 79.97 kB / 411.7 MB, free: 24.13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000103/0.1985, allocations: 111.5 kB / 411.8 MB, free: 24.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000122/0.1986, allocations: 127.4 kB / 411.9 MB, free: 23.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.487e-05/0.1987, allocations: 16 kB / 411.9 MB, free: 23.88 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.684e-05/0.1987, allocations: 15.94 kB / 411.9 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.725e-05/0.1988, allocations: 47.77 kB / 412 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001029/0.1989, allocations: 153 kB / 412.1 MB, free: 23.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001591/0.199, allocations: 240.3 kB / 412.3 MB, free: 23.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.199, allocations: 4 kB / 412.3 MB, free: 23.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1991, allocations: 0 / 412.3 MB, free: 23.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.1991, allocations: 0 / 412.3 MB, free: 23.42 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.0009062/0.2, allocations: 0.6069 MB / 413 MB, free: 22.76 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.991e-05/0.2, allocations: 8.031 kB / 413 MB, free: 22.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.802e-05/0.2001, allocations: 40.56 kB / 413 MB, free: 22.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002251/0.2003, allocations: 275.6 kB / 413.3 MB, free: 22.4 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.86e-05/0.2003, allocations: 16.8 kB / 413.3 MB, free: 22.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.134e-05/0.2004, allocations: 20.38 kB / 413.3 MB, free: 22.37 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005628/0.2009, allocations: 290.1 kB / 413.6 MB, free: 22.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.201, allocations: 0 / 413.6 MB, free: 22.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.494e-05/0.201, allocations: 11.98 kB / 413.6 MB, free: 22.06 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.201, allocations: 4 kB / 413.6 MB, free: 22.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006576/0.2017, allocations: 273.5 kB / 413.9 MB, free: 21.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001247/0.2029, allocations: 0.9715 MB / 414.8 MB, free: 20.74 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007193/0.2037, allocations: 270.6 kB / 415.1 MB, free: 20.47 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002963/0.204, allocations: 118.6 kB / 415.2 MB, free: 20.35 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.299e-05/0.204, allocations: 4 kB / 415.2 MB, free: 20.35 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000419/0.2044, allocations: 193.7 kB / 415.4 MB, free: 20.14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.883e-06/0.2044, allocations: 0 / 415.4 MB, free: 20.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.002185/0.2066, allocations: 0.7293 MB / 416.1 MB, free: 19.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/0.2067, allocations: 110.8 kB / 416.3 MB, free: 19.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002052/0.2069, allocations: 262.5 kB / 416.5 MB, free: 18.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/0.2069, allocations: 25.7 kB / 416.5 MB, free: 18.95 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.816e-05/0.207, allocations: 183.8 kB / 416.7 MB, free: 18.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.528e-05/0.207, allocations: 43.45 kB / 416.8 MB, free: 18.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.227e-05/0.2071, allocations: 4 kB / 416.8 MB, free: 18.72 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.588e-05/0.2071, allocations: 334.8 kB / 417.1 MB, free: 18.39 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003062/0.2074, allocations: 115.9 kB / 417.2 MB, free: 18.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003141/0.2077, allocations: 185.3 kB / 417.4 MB, free: 18.06 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005688/0.2083, allocations: 292.4 kB / 417.7 MB, free: 17.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2083, allocations: 4 kB / 417.7 MB, free: 17.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001022/0.2094, allocations: 471.2 kB / 418.1 MB, free: 17.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.094e-05/0.2094, allocations: 41.75 kB / 418.2 MB, free: 17.22 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.2094, allocations: 4 kB / 418.2 MB, free: 17.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003208/0.2097, allocations: 84.78 kB / 418.3 MB, free: 17.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001743/0.2099, allocations: 55.91 kB / 418.3 MB, free: 17.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001884/0.2118, allocations: 1.783 MB / 420.1 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002895/0.2121, allocations: 67.77 kB / 420.2 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/0.2121, allocations: 4 kB / 420.2 MB, free: 15.08 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.0001103/0.2123, allocations: 137.8 kB / 420.3 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.795e-05/0.2123, allocations: 19.94 kB / 420.3 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.881e-05/0.2123, allocations: 29.83 kB / 420.4 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.2124, allocations: 3.938 kB / 420.4 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.2124, allocations: 3.938 kB / 420.4 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.2124, allocations: 7.922 kB / 420.4 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002033/0.2126, allocations: 293.5 kB / 420.7 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.2126, allocations: 0 / 420.7 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001291/0.2127, allocations: 31.97 kB / 420.7 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002295/0.213, allocations: 84.92 kB / 420.8 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.213, allocations: 4 kB / 420.8 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001551/0.2145, allocations: 1.672 MB / 422.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2146, allocations: 0 / 422.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009205/0.2155, allocations: 401.4 kB / 422.8 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.38e-05/0.2155, allocations: 100.8 kB / 422.9 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.321e-05/0.2156, allocations: 4 kB / 422.9 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002278/0.2158, allocations: 35.97 kB / 423 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.274e-05/0.2159, allocations: 27.97 kB / 423 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.181e-05/0.2159, allocations: 3.984 kB / 423 MB, free: 12.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001317/0.216, allocations: 186 kB / 423.2 MB, free: 11.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2161, allocations: 0 / 423.2 MB, free: 11.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000333/0.2164, allocations: 79.78 kB / 423.3 MB, free: 11.76 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.0001461/0.2165, allocations: 96.25 kB / 423.4 MB, free: 11.65 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008298/0.2174, allocations: 441 kB / 423.8 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2174, allocations: 0 / 423.8 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003791/0.2178, allocations: 246.8 kB / 424 MB, free: 10.95 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003186/0.2181, allocations: 54.25 kB / 424.1 MB, free: 10.9 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007792/0.2189, allocations: 0.5423 MB / 424.6 MB, free: 10.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001394/0.2191, allocations: 0.7482 MB / 425.4 MB, free: 9.551 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.477e-05/0.2191, allocations: 15.44 kB / 425.4 MB, free: 9.535 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.2191, allocations: 0 / 425.4 MB, free: 9.535 MB / 298.7 MB Notification: Performance of Templates: time 0.004921/0.2241, allocations: 4.118 MB / 429.5 MB, free: 5.426 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