Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_trunk_cpp_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_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001382/0.001382, allocations: 196.9 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.312/1.312, allocations: 226.6 MB / 244.3 MB, free: 8.293 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007371/0.0007372, allocations: 106.8 kB / 296.4 MB, free: 6.988 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002433/0.0002434, allocations: 8 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1817/0.182, allocations: 51.3 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.001923/0.1839, allocations: 2.353 MB / 409.9 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007695/0.1847, allocations: 0.6773 MB / 410.5 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.1848, allocations: 7.938 kB / 410.5 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.737e-05/0.185, allocations: 27.77 kB / 410.6 MB, free: 24.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001258/0.1851, allocations: 71.45 kB / 410.6 MB, free: 24.67 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001869/0.1853, allocations: 67.84 kB / 410.7 MB, free: 24.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002073/0.1855, allocations: 318.6 kB / 411 MB, free: 24.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.1856, allocations: 63.89 kB / 411.1 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.1857, allocations: 111.6 kB / 411.2 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001162/0.1859, allocations: 135.3 kB / 411.3 MB, free: 23.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.489e-05/0.1859, allocations: 12 kB / 411.3 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.699e-05/0.186, allocations: 16 kB / 411.4 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.23e-05/0.186, allocations: 51.77 kB / 411.4 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.742e-05/0.186, allocations: 69.58 kB / 411.5 MB, free: 23.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001596/0.1862, allocations: 242.1 kB / 411.7 MB, free: 23.6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1862, allocations: 0 / 411.7 MB, free: 23.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1862, allocations: 0 / 411.7 MB, free: 23.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.1862, 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.000945/0.1872, allocations: 0.6145 MB / 412.3 MB, free: 22.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.737e-05/0.1872, allocations: 8.031 kB / 412.3 MB, free: 22.92 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.018e-05/0.1873, allocations: 35.56 kB / 412.4 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002296/0.1875, allocations: 274.4 kB / 412.6 MB, free: 22.58 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.75e-05/0.1876, allocations: 16.39 kB / 412.7 MB, free: 22.56 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.645e-05/0.1876, allocations: 24 kB / 412.7 MB, free: 22.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005476/0.1881, allocations: 285.8 kB / 413 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.1882, allocations: 0 / 413 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.206e-05/0.1882, allocations: 8 kB / 413 MB, free: 22.24 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.1882, allocations: 8 kB / 413 MB, free: 22.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006558/0.1889, allocations: 273.5 kB / 413.2 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001214/0.1901, allocations: 0.9676 MB / 414.2 MB, free: 20.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007217/0.1908, allocations: 278.5 kB / 414.5 MB, free: 20.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002879/0.1911, allocations: 116.8 kB / 414.6 MB, free: 20.53 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.98e-05/0.1911, allocations: 7.969 kB / 414.6 MB, free: 20.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004055/0.1916, allocations: 193.8 kB / 414.8 MB, free: 20.31 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.293e-06/0.1916, allocations: 4 kB / 414.8 MB, free: 20.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.002047/0.1936, allocations: 0.7254 MB / 415.5 MB, free: 19.55 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.157e-05/0.1937, allocations: 110.8 kB / 415.6 MB, free: 19.42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001935/0.1939, allocations: 266.6 kB / 415.9 MB, free: 19.15 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.1939, allocations: 33.69 kB / 415.9 MB, free: 19.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.756e-05/0.194, allocations: 179.7 kB / 416.1 MB, free: 18.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.295e-05/0.194, allocations: 35.47 kB / 416.1 MB, free: 18.9 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.07e-05/0.194, allocations: 8 kB / 416.1 MB, free: 18.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.57e-05/0.1941, allocations: 334.8 kB / 416.5 MB, free: 18.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003113/0.1944, allocations: 123.8 kB / 416.6 MB, free: 18.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003209/0.1947, allocations: 194.2 kB / 416.8 MB, free: 18.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003158/0.195, allocations: 152.5 kB / 416.9 MB, free: 18.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.195, allocations: 3.938 kB / 416.9 MB, free: 18.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001039/0.1961, allocations: 475.7 kB / 417.4 MB, free: 17.57 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.1961, allocations: 33.7 kB / 417.4 MB, free: 17.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.1961, allocations: 7.953 kB / 417.4 MB, free: 17.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003197/0.1965, allocations: 88.8 kB / 417.5 MB, free: 17.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00018/0.1967, allocations: 43.97 kB / 417.6 MB, free: 17.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002024/0.1987, allocations: 1.857 MB / 419.4 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003002/0.199, allocations: 59.81 kB / 419.5 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.954e-05/0.199, allocations: 12 kB / 419.5 MB, free: 15.32 MB / 298.7 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 ($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 (21): * Single equations (assignments): 19 * 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 9.799e-05/0.1991, allocations: 133.8 kB / 419.6 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.894e-05/0.1992, allocations: 27.7 kB / 419.6 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.452e-05/0.1992, allocations: 30.06 kB / 419.7 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1992, allocations: 0 / 419.7 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.1992, allocations: 3.938 kB / 419.7 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1992, allocations: 3.984 kB / 419.7 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.1994, allocations: 293.4 kB / 420 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.1994, allocations: 11.83 kB / 420 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001317/0.1996, allocations: 31.97 kB / 420 MB, free: 14.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002314/0.1998, allocations: 80.8 kB / 420.1 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.1998, allocations: 4 kB / 420.1 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001639/0.2015, allocations: 1.764 MB / 421.9 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2015, allocations: 0 / 421.9 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009082/0.2024, allocations: 402.6 kB / 422.3 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.733e-05/0.2024, allocations: 88.92 kB / 422.3 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.184e-05/0.2025, allocations: 8 kB / 422.3 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002488/0.2027, allocations: 47.91 kB / 422.4 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.147e-05/0.2028, allocations: 23.97 kB / 422.4 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/0.2028, allocations: 0 / 422.4 MB, free: 12.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001274/0.2029, allocations: 198 kB / 422.6 MB, free: 11.97 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.203, allocations: 0 / 422.6 MB, free: 11.97 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003199/0.2033, allocations: 67.84 kB / 422.7 MB, free: 11.9 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 9.769e-05/0.2034, allocations: 107.2 kB / 422.8 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001111/0.2045, allocations: 0.5085 MB / 423.3 MB, free: 11.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2045, allocations: 0 / 423.3 MB, free: 11.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004038/0.2049, allocations: 246.9 kB / 423.5 MB, free: 11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.2052, allocations: 46.86 kB / 423.6 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002635/0.2079, allocations: 1.071 MB / 424.6 MB, free: 9.859 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001274/0.208, allocations: 0.7482 MB / 425.4 MB, free: 9.086 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.826e-05/0.2081, allocations: 19.44 kB / 425.4 MB, free: 9.066 MB / 298.7 MB Notification: Performance of SimCode: time 3.5e-07/0.2081, allocations: 3.938 kB / 425.4 MB, free: 9.062 MB / 298.7 MB Notification: Performance of Templates: time 0.004403/0.2125, allocations: 4.157 MB / 429.6 MB, free: 4.918 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches